@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
8 fixed
Security
2 advisories affect 4.0.10; 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
Bug Fixes
Remove
onCancelwhen worker is terminatedbrowser: Don't scale the iframe if UI is disabled
browser: Handle dependency stack traces with external source maps. Resolves
bun: Parsing of stack trace for bun runtime
core: Prevent starting new run when cancelling
pool: Prevent writing to closed worker
reporters: Report correct test run duration at the end
ui: Use execution time from ws reporter (
onFinished)
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.