@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
9 new15 fixed1 internal
Release note
Features
Support case-insensitive path matching in cli
Add typeahead search
Add syntax highlighting to error messages
Allow extending toEqual
coverage: Custom reporter support
ui: Show unhandled errors on the ui
vitest: Add
--disable-console-interceptoption to allow opting-out from automatic console log interceptionvitest: Allow overiding package installer with public API
Bug Fixes
browser: Support vite config
server.headersbrowser: Fix
testNamePatternconfigbrowser: Fix updating snapshot during watch mode
browser: Remove redundant test failure logging
happy-dom: Window.close() for environment teardown
utils: Fix
objDisplaydefault truncate option fortest.eachtitlevitest: Fix tap reporter to handle custom error
vitest: Gracefully exit Vitest if
process.exitis called inside the testvitest: Throw "cannot mock" error only in isolated pools
vitest: Don't throw SyntaxError when "await vi.hoisted" is used
vitest: Correctly parse --maxWorkers/--minWorkers
vitest: Show correct error when vi.hoisted is used inside vi.mock and the other way around
vitest: Call global teardown when using workspaces
vitest: Use file instead of id for HMR
vitest: Add inlined deps to ssr.noExternal so they are added to the module graph
workspace: Support overring
poolandpoolOptionson project level