vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
1 deprecated7 new18 fixed
- Deprecated
config: Deprecate
cache.diroption
Security
2 advisories affect 1.4.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
- CriticalVitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningGHSA-9crc-q9x8-hgqq · 4 Feb 2025Fixed in 1.6.1
Release note
Features
Throw error when using snapshot assertion with
notAdd a flag to include test location in tasks
cli: Support wildcards in
--projectoptionconfig: Add
shuffle.filesandshuffle.testsoptions- Deprecated
config: Deprecate
cache.diroption coverage: Support
--changedoptionvitest: Support
clearScreencli flag
Bug Fixes
Repeatable
--projectoption--inspect-brkto pause before executionCorrect locations in test.each tasks
api: Use resolvedUrls from devserver
browser: Add
magic-stringtooptimizeDeps.includecoverage: Expensive regexp hangs v8 report generation
coverage: V8 to ignore type-only files
coverage: Respect source maps of pre-transpiled sources
coverage: Prevent
reportsDirectoryfrom removing user's projectexpect: Show diff on
toContain/toMatchassertion errorforks: Wrap
definesto supportundefinedvaluestypecheck: Update get-tsconfig 4.7.3 to fix false circularity error
ui: Escape html in error diff
vitest: Loosen
onConsoleLogreturn typevitest: Ensure restoring terminal cursor on close
vitest: Ignore timeout on websocket reporter rpc
vitest: Correctly override api with --no-api flag
vitest: Logs in
beforeAllandafterAllworkspace: Throw error when browser mode and
@vitest/coverage-v8are used
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.