Packages

@vitest/spy

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

Your version

3.1.0

31 Mar 2025Where it was published

3.2.7 is the newest release of 3.x.

In short

13 new1 faster10 fixed

Release note

Features

  • Introduce %$ option to add number of the test to its title

  • Add diff.maxDepth option and set non-Infinity value as a default to reduce crash

  • Allow array element for test.each/for title formatting

  • Add "configureVitest" plugin hook

  • Support --configLoader CLI option

  • Added vitest-browser-lit to vitest init browser and docs

  • Use providers request interception for module mocking

  • browser: Introduce and, or and filter locators

  • reporter: Always render test time

  • reporter: --silent=passed-only to log failed tasks only

  • runner: Add test.scoped to override test.extend fixtures per-suite

  • vitest: Allow conditional context.skip(boolean)

  • vitest: Support rolldown-vite in NormalizeUrlPlugin

Bug Fixes

  • Update test stats regularly

  • Fix vm tests flakiness

  • Set diff.expand: false as default

  • browser: Correctly calculate timeout in hooks when actions are performed

  • deps: Update all non-major dependencies

  • reporter: --hideSkippedTests should hide suites too

  • reporter: Report tests in correct order

  • reporter: Print test only once in the verbose mode

  • snapshot: Fix indent normalization

  • snapshot: This change can cause small amount of very old snapshots to be updated, but there will be no functional change to how they work.

Performance

  • browser: Fork jest-dom instead of bundling it