@vitest/spy
5.1.1 · 18 Nov 2026MIT232.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @vitest/spy From 0.34.7 to 5.1.1
100 releases in betweenevery note read
- 137
- changes to make
- 0
- advisories fixed
- 440
- new
- 1229
- fixes
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
Release by release
- New
Send source maps to workers as a string
- New
Resolve CLI file filters once instead of per test file
- Fixed
Rerun on file changes after a config restart
- Fixed
Avoid leaking the context expect
- New
- 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
- New
spy: Reset only mocks that were called or reconfigured
- Fixed
Fail the run on git and location filter errors
- Fixed
Enable fsModuleCache by default
- 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
spy: Fix stack overflow when spying
Set.prototype.add
- 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
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)"
19 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.