@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
0.34.7 is the newest release of 0.31.x.
In short
1 new17 fixed
Release note
Features
watch: Press
rshould rerun current pattern tests
Bug Fixes
Make sure thrown error is an object
Remove duplicate type
Throw an error, if tests are collected with a different vitest version
Support application/x-gzip metadata in html report
Correctly restore vi.fn implementation
Display error message correctly
Exclude
cwdfrom test name filterCheck error type before modifying it
toMatchInlineSnapshotfails when file path includes parenthesesStop spying on a method, when it's restored
Test repeats
browser: Throw an error if test failed to load
browser: Keep default export when rewriting exports
cli: Improve cac errors when mixing boolean and dot notation
reporter: Prevent deleting test reports stored in coverage directory
typecheck: Correctly resolve custom tsconfig path
vite-node: Allow returning id not wrapped in promise