@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @vitest/mocker From 2.1.2 to 5.1.0
69 releases in betweennotes for 67
Counted from 67 of 69 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
Fixes 2 advisories affecting 2.1.2
- Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mockmoderate · GHSA-82fw-gwwq-j7x9
- Vitest: Code injection via unauthenticated manual mock registrationmoderate · GHSA-qxg6-89mg-rqv8
Release by release
- New
Add
--last-failedto run only failed tests - New
Support
Temporal.InstantandTemporal.ZonedDateTimeinvi.setSystemTime() - New
Introduce
--since-last-runflag - New
Expose per-retry/repeat attempt result
- New
- New
Add
datato theimport.meta.hotstub - Fixed
Keep vite default
fs.denywith api token file - Fixed
Handle quoted file names in
--changed - Fixed
Set
skipinskipIf, ignoreundefinedoptions
- New
- New
Reuse fsModuleCache when filtering by source
- Fixed
Fail the run on git and location filter errors
- Fixed
Enable fsModuleCache by default
- Fixed
Track project files and mocks with --changed
- New
- Fixed
Isolate
result.statusbetweenrepeatsruns - Fixed
Don't print an interceptor warning in browser mode
- Fixed
Don't retry when
test.failsexpectedly failed - Fixed
Scope cache key generators to projects
- Fixed
deps: Pin
why-is-node-runningto3.2.1to avoid users running intoERR_PNPM_TRUST_DOWNGRADE - Fixed
vitest: Remove root temp dir on close
- Fixed
- Fixed
Bind
processin case global is overwritten
- Fixed
- Deprecated
Warn when deprecated
deps.optimizer.webis used - Fixed
Exit 1 when vitest list fails collection
- Fixed
Keep parse error details in static collection
- Fixed
Avoid recursive prototype in automocking
- Deprecated
- Breaking
Replace
loupe.inspectwith pretty-format - Breaking
Remove quotes from string values in
test.for/eachtitle$variable (take 2) - Breaking
Default
attachmentsDirfrom.vitest-attachements/to.vitest/attachments/ - Breaking
Remove
sequentialtest/suite options in favor ofconcurrent
- Breaking
- Fixed
mocker: Harden manual and redirect mocks [backport to v4]
- Fixed
1 other line we could not sort, mostly version bumps
- 3.0.1
Revert "fix: re-apply default conditions if using vite 6 or later (#7071)"
9 internal lines (docs, tests, tooling) left out.
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.