Packages

@vitest/spy

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

Your version

1.2.2

26 Jan 2024Where it was published

1.6.1 is the newest release of 1.x.

In short

13 fixed

Release note

Bug Fixes

  • coverage: Remove coverage/.tmp files after run

  • coverage: Don't crash when re-run removes earlier run's reports

  • expect: Improve toThrow(asymmetricMatcher) failure message

  • forks: Set correct VITEST_POOL_ID

  • threads: Mention common work-around for the logged error

  • typecheck: Fix ignoreSourceErrors in run mode

  • vite-node: Provide import.meta.filename and dirname

  • vitest: Expose getHooks & setHooks

  • vitest: Test deep dependencies change detection

  • vitest: Throw an error if vi.mock is exported

  • vitest: Allow useFakeTimers to fake requestIdleCallback on non browser

  • vitest: Support older NodeJS with async import.meta.resolve

  • vitest: Don't throw an error if mocked file was already imported