Packages

@vitest/spy

5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.0

12 Jan 2024Where it was published

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-intercept option to allow opting-out from automatic console log interception

  • vitest: Allow overiding package installer with public API

Bug Fixes

  • browser: Support vite config server.headers

  • browser: Fix testNamePattern config

  • browser: Fix updating snapshot during watch mode

  • browser: Remove redundant test failure logging

  • happy-dom: Window.close() for environment teardown

  • utils: Fix objDisplay default truncate option for test.each title

  • vitest: Fix tap reporter to handle custom error

  • vitest: Gracefully exit Vitest if process.exit is called inside the test

  • vitest: 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 pool and poolOptions on project level