vitest
5.1.1 · 18 Nov 2026MIT193.3M / weekRepositoryHomepagenpmAtom feed
0.34.6 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
Security
1 advisory affects 0.26.0; 3.2.6 fixes them
- CriticalWhen Vitest UI server is listening, arbitrary file can be read and executedGHSA-5xrq-8626-4rwp · 1 Jun 2026Fixed in 3.2.6
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
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.