Packages

@vitest/coverage-c8

0.33.0 · 6 Jul 2023MIT193.2k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: v8 coverage is moved to @vitest/coverage-v8 packageWhat to use instead
Your version

0.23.0

4 Sep 2022Where it was published

0.33.0 is the newest release of 0.23.x.

npm marks 0.23.0 as deprecated: v8 coverage is moved to @vitest/coverage-v8 package

In short

4 breaking7 new13 fixed

  • breaking

    Don't reset modules with --no-isolate

  • breaking

    If not processed, CSS Modules return a proxy, scope class names by filename

  • breaking

    Improve interchangeability with cjs

  • breaking

    Allow custom environments

Release note

Breaking Changes

  • breaking

    Don't reset modules with --no-isolate

  • breaking

    If not processed, CSS Modules return a proxy, scope class names by filename

  • breaking

    Improve interchangeability with cjs

  • breaking

    Allow custom environments

Features

  • Add include option in istanbul coverage

  • Introduce retry option for tests

  • Add benchmark support with vitest bench command

  • coverage: Include json reporter by default

  • coverage-istanbul: Add "all" option

  • worker: Always apply custom resolver conditions

Bug Fixes

  • Allow referring to first seen value while automocking

  • Console.Console is undefined (close: #1877)

  • Invalidate new worker and its dependencies

  • Improve error serialization

  • Clean coverage-c8 tmp before reporting (fix #1917)

  • Automock getters and setters

  • Add possibility to filter test files by fileName

  • Make globalThis more compatible with jest

  • Delete mock in moduleCache when unmock

  • Matcher toHaveProperty actually tests value

  • env-replacer: Don't modify string literals

  • istanbul: Disable compact in instrumenter transform

  • reporter: Correct error source position in json report

  • reporter-junit: Escape XML when in error message (fix: #1823)