@vitest/coverage-c8
0.33.0 · 6 Jul 2023MIT193.2k / weekRepositoryHomepagenpmAtom feed
0.33.0 is the newest release of 0.26.x.
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), unlessdeps.interopDefaultis enabled, or dependency is indeps.inline. This change doesn't affectjsdom,happy-domoredgeenvironments.
- 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/uiinstalled, 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