@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
3.2.7 is the newest release of 3.x.
In short
13 new1 faster10 fixed
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