vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
2.1.9 is the newest release of 2.x.
In short
2 deprecated1 faster14 fixed
- Deprecated
vitest: Deprecate UserConfig in favor of ViteUserConfig
- Deprecated
vitest: Deprecate old task types and node-reliant types
Security
3 advisories affect 2.1.3; 4.1.11 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
- CriticalVitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningGHSA-9crc-q9x8-hgqq · 4 Feb 2025Fixed in 2.1.9
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
Bug Fixes
Fix error diff of
toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsybrowser: Provide aria role intellisense
browser: Not.toBeInTheDocument works with locators API
browser: Use
/mockServiceWorker.jsinstead of/__vitest_msw__browser: Don't override the esbuild option in the browser mode
expect: Preserve prototype in
toMatchObjectdiffmocker: Specify correct spy dependency
runner: Ensure sequential suite overrides sequence.concurrent
- Deprecated
vitest: Deprecate UserConfig in favor of ViteUserConfig
vitest: Don't hang with maxConcurrency 0
- Deprecated
vitest: Deprecate old task types and node-reliant types
vitest: Fix
<empty line>logs when interleavingconsole.log/errorvitest: Show rollup error details as test error
vitest: Always inline setup files
vitest: Use
fast-globinstead oftinyglobbyin Vitestweb-worker: Share mocker with main executor
Performance
Reuse full name in reported tasks, update generator types
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.