@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
2 new17 fixed
Release note
Features
experimental: Expose
matchesTagsto test if the current filter matches tagsexperimental: Introduce
experimental.vcsProvider
Bug Fixes
Mark
TestProject.testFilesListinternal properlyDetect fixture that returns without calling
useDrop vite 8.beta support
Type regression in vi.mocked() static class methods
Properly re-evaluate actual modules of mocked external
Preserve coverage report when html reporter overlaps
Provide
vi.advanceTimersto the preview providerDon't leak event listener in playwright provider
Open browser in
--standalonemode without running testsGuard disposable and optional
bodyResolve
retry.conditionRegExp serialization issuecollect: Don't treat extra props on
testreturn as testscoverage: Simplify provider types
coverage: Load built-in provider without module runner
expect: Soft assertions continue after .resolves/.rejects promise errors
expect: Fix sinon-chai style API
pretty-format: Limit output for large object