@vitest/snapshot
5.1.0 · 2 Nov 2026MIT134.2M / weekRepositoryHomepagenpmAtom feed
0.34.7 is the newest release of 0.30.x.
In short
7 breaking3 new5 fixed
- Breaking
Remove tinyspy internal properties on Vitest spies
- Breaking
Only support Node.js 14.18.0 or newer
- Breaking
Use "concordance" package to display diff instead of using custom diff
- Breaking
Move snapshot implementation into @vitest/snapshot
- Breaking
Bump coverage packages vitest peer dependency
- Breaking
Add workspace support
- Breaking
Experimental optimizer introduced in 0.29.0 is temporarily disabled.
Release note
Breaking Changes
- Breaking
Remove tinyspy internal properties on Vitest spies
- Breaking
Only support Node.js 14.18.0 or newer
- Breaking
Use "concordance" package to display diff instead of using custom diff
- Breaking
Move snapshot implementation into @vitest/snapshot
- Breaking
Bump coverage packages vitest peer dependency
- Breaking
Add workspace support
- Breaking
Experimental optimizer introduced in 0.29.0 is temporarily disabled.
Features
Gzip html reporter's metadata
Add chai config
snapshot: Introduce
toMatchFileSnapshotand auto queuing expect promise
Bug Fixes
Resolve reporters passed down to the CLI relative to the running directory
Don't show "diff" in "serialized error" section
Convert '--single-thread' and '--inspect' cli args to boolean
Stack trace point to incorrect file
Run benchmarks sequentially
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.