@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
3.2.7 is the newest release of 3.x.
In short
7 new4 fixed
Security
2 advisories affect 3.1.0; 4.1.12 fixes them
- ModerateVitest: Code injection via unauthenticated manual mock registrationGHSA-qxg6-89mg-rqv8 · 21 Oct 2026Fixed in 4.1.12
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
The section about @vitest/mocker of a note shared by several packages.
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
Bug Fixes
Update test stats regularly
Fix vm tests flakiness
Set
diff.expand: falseas defaultdeps: Update all non-major dependencies
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.