vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
9 new15 fixed1 internal
Security
2 advisories affect 1.2.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
Support case-insensitive path matching in cli
Add typeahead search
Add syntax highlighting to error messages
Allow extending toEqual
coverage: Custom reporter support
ui: Show unhandled errors on the ui
vitest: Add
--disable-console-interceptoption to allow opting-out from automatic console log interceptionvitest: Allow overiding package installer with public API
Bug Fixes
browser: Support vite config
server.headersbrowser: Fix
testNamePatternconfigbrowser: Fix updating snapshot during watch mode
browser: Remove redundant test failure logging
happy-dom: Window.close() for environment teardown
utils: Fix
objDisplaydefault truncate option fortest.eachtitlevitest: Fix tap reporter to handle custom error
vitest: Gracefully exit Vitest if
process.exitis called inside the testvitest: Throw "cannot mock" error only in isolated pools
vitest: Don't throw SyntaxError when "await vi.hoisted" is used
vitest: Correctly parse --maxWorkers/--minWorkers
vitest: Show correct error when vi.hoisted is used inside vi.mock and the other way around
vitest: Call global teardown when using workspaces
vitest: Use file instead of id for HMR
vitest: Add inlined deps to ssr.noExternal so they are added to the module graph
workspace: Support overring
poolandpoolOptionson project level
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.