🚨 Breaking Changes
- vite-node: Rewrite how vite-node resolves id - by @sheremet-va in #2463 (58ee8)
- Correctly interop nested default for external and inlined modules - by @sheremet-va in #2512 (084e9)
- 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.interopDefault
is enabled, or dependency is indeps.inline
. This change doesn't affectjsdom
,happy-dom
oredge
environments.
- If your environment is
- web-worker: Make web-worker implementation more compatible with spec - by @sheremet-va in #2431 (c3a63)
- Messages are now cloned with
structuredClone
, if it's available, or fallbacks to a polyfill. - Added support for
SharedWorker
- Messages are now cloned with
🚀 Features
- Introduce a native way to set env and globals - by @sheremet-va in #2515 (b114d)
- Add html reporter based on Vitest UI - by @poyoho and @sheremet-va in #2444 (b8f34)
- 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.
- If you have