vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
5 new9 fixed
Security
1 advisory affects 4.1.3; 4.1.11 fixes them
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
Experimental Features
Add
experimental.preParseflagSupport
browser.locators.exactoptionAdd
TestAttachment.bodyEncodingSupport custom snapshot matcher
Bug Fixes
Advance fake timers with
expect.pollintervalAdd
@vitest/coverage-v8and@vitest/coverage-istanbulas optional dependencyFix
defineHelperfor webkit async stack trace + update playwright 1.59.0Fix suite hook throwing errors for unused auto test-scoped fixture
expect: Remove
JestExtendError.contextfrom verbose error reportingexpect: Don't leak "runner" types
snapshot: Fix flagging obsolete snapshots for snapshot properties mismatch
snapshot: Export custom snapshot matcher helper from
vitestui: Don't leak vite types
vm: Fix external module resolve error with deps optimizer query
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.