Packages

@vitest/spy

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

Your version

0.34.5

21 Sep 2023Where it was published

0.34.7 is the newest release of 0.34.x.

In short

5 new1 faster12 fixed1 internal

Release note

Features

  • config: Add diff option

  • coverage: Add coverage['100'] to istanbul provider

  • vitest: Support vi.waitFor method

  • vitest: Allow using unprocessed environment files

  • vitest: Support vi.waitUntil method

Bug Fixes

  • Update HappyDOMOptions to be compatible with v12

  • Print value shape when .resolves and .rejects fails

  • expect: Improve the error message when nothing is thrown when testing toThrow

  • happy-dom: Catch errors in happy-dom

  • runner: Restore leading space in testNamePattern

  • runner: test.extend doesn't work in hooks without test

  • snapshot: Support mix of normal/with placeholders snapshots

  • ui: Correctly render ansi diff

  • vite-node: Export SourceMapInput to fix CYCLIC_CROSS_CHUNK_REEXPORT

  • vite-node: Align vite dependency version with vitest

  • vitest: Rerun tests if a file loaded with query changes

  • vitest: Inject "define" in workspaces

Performance

  • Use lazy require in vm pool