Packages

@vitest/spy

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

Your version

2.0.5

31 Jul 2024Where it was published

2.1.9 is the newest release of 2.x.

In short

1 new11 fixed

Release note

Features

  • Introduce experimental reported tasks

    • This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go!

Bug Fixes

  • Show a difference between string characters if both values are strings

  • testNamePattern adds leading space

  • browser: Don't bundle afterEach cleanup hooks in node entrypoint

  • browser: UserEvent.setup initiates a separate state for userEvent instance

  • browser: Correctly import optimized module in vi.importActual

  • browser: Passing options to hover/unhover

  • browser: Improve unique CSS selector generation

  • vitest: Remove nuxt from auto inline deps

  • vitest: Improve defineProject and defineWorkspace types

  • vitest: Correctly resolve mocked node:* imports in __mocks__ folder

  • web-worker: Expose globals on self