@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
0.34.7 is the newest release of 0.27.x.
In short
1 new1 faster11 fixed
Release note
Features
Add runAllTimersAsync from sinonjs
Bug Fixes
Document.defaultView references the same window as the global one
Trim input filename and test name
Increase default teardownTimeout
Mock css files imported with "require"
Don't start watching files in "run" mode
Rerun tests, when setup file is edited
Always show filename for unhandled errors
Define property instead of assigning it in vi.stubGlobal
coverage: Watch mode to use
coverage.allonly when all tests are runtypecheck: Log tests with verbose reporter, correctly show "pass" tests
ui: Don't show "connecting" screen in html reporter
Performance
Don't resolve import path, if it was already resolved