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.26.0

19 Dec 2022Where it was published

0.33.0 is the newest release of 0.26.x.

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

In short

3 breaking2 new1 fixed

  • breaking

    vite-node: Rewrite how vite-node resolves id

  • breaking

    Correctly interop nested default for external and inlined modules

  • breaking

    web-worker: Make web-worker implementation more compatible with spec

Release note

Breaking Changes

  • breaking

    vite-node: Rewrite how vite-node resolves id

  • breaking

    Correctly interop nested default for external and inlined modules

    • If your environment is node, Vitest will not resolve invalid named exports (exports that are on "default" property will not magically appear as named exports), unless deps.interopDefault is enabled, or dependency is in deps.inline. This change doesn't affect jsdom, happy-dom or edge environments.

  • breaking

    web-worker: Make web-worker implementation more compatible with spec

    • Messages are now cloned with structuredClone, if it's available, or fallbacks to a polyfill.

    • Added support for SharedWorker

Features

  • Introduce a native way to set env and globals

  • Add html reporter based on Vitest UI

    • If you have @vitest/ui installed, you can now use 'html' reporter to get a beautiful UI to view your test results, inspect module graph and read log messages.

Bug Fixes

  • Allow assigning new hotContext