@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
9 fixed
Security
2 advisories affect 4.0.8; 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
Workaround
noExternalmerging bug on Vite 6Missed context.d.ts file
Incorrect error message for non-awaited
expect.element()browser: Cleanup frame-ancestors from CSP header at coverage middleware
deps: Update all non-major dependencies
forks: Do not fail with Windows Defender enabled
runner: Properly encode Uint8Array body in annotations
spy: Copy static properties if spy is initialised with
vi.fn(), fix types forvi.spyOn(obj, class)webdriverio: When no argument is passed to the .click interaction command, the webdriver command should also have no argument
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.