vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
3.2.7 is the newest release of 3.x.
In short
13 new1 faster10 fixed
Security
2 advisories affect 3.1.0; 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
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
Features
Introduce
%$option to add number of the test to its titleAdd
diff.maxDepthoption and set non-Infinityvalue as a default to reduce crashAllow array element for
test.each/fortitle formattingAdd "configureVitest" plugin hook
Support
--configLoaderCLI optionAdded
vitest-browser-littovitest init browserand docsUse providers request interception for module mocking
browser: Introduce
and,orandfilterlocatorsreporter: Always render test time
reporter:
--silent=passed-onlyto log failed tasks onlyrunner: Add
test.scopedto overridetest.extendfixtures per-suitevitest: Allow conditional
context.skip(boolean)vitest: Support rolldown-vite in NormalizeUrlPlugin
Bug Fixes
Update test stats regularly
Fix vm tests flakiness
Set
diff.expand: falseas defaultbrowser: Correctly calculate timeout in hooks when actions are performed
deps: Update all non-major dependencies
reporter:
--hideSkippedTestsshould hide suites tooreporter: Report tests in correct order
reporter: Print test only once in the verbose mode
snapshot: Fix indent normalization
snapshot: This change can cause small amount of very old snapshots to be updated, but there will be no functional change to how they work.
Performance
browser: Fork jest-dom instead of bundling it
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.