Packages

@vitest/spy

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

Your version

1.3.0

16 Feb 2024Where it was published

1.6.1 is the newest release of 1.x.

In short

1 deprecated12 new25 fixed1 internal

  • deprecated

    Deprecate watchExclude

Release note

Features

  • deprecated

    Deprecate watchExclude

  • browser: Run test files in isolated iframes

  • config: Add snapshotSerializers option

  • reporters: Support custom options

  • runner: Support automatic fixtures

  • ui: Save splitpanes size to local storage

  • vitest: Add onTestFinished hook

  • vitest: Add github actions reporter

  • vitest: Expose jsdom global if jsdom environment is enabled

  • vitest: Add new CLI options

  • vitest: "test" accepts options object as the second parameter

  • vm: Support wasm module

Bug Fixes

  • Fix sourcemap in vm pools

  • Don't optimize react/jsx-runtime by default when running in Node

  • Rpc timeout error messages to include caller

  • Requires fixed version across the monorepo

  • Prevent merging of poolOptions

  • browser: Don't exclude node builtins from optimization

  • browser: Support coverage.reportsDirectory with multiple directories

  • cli: Parse --browser=<name> correctly

  • coverage: .tmp directory conflicts with --shard option

  • reporters: Testsuite name should include project root in Junit output

  • typecheck: Fix suite collection while-loop

  • ui: Fix tests duration time

  • utils: Fix asymmetric matcher diff inside array

  • vitest: Correctly report failed test files as failures in json reporter, export json reporter types

  • vitest: Don't run typecheck tests in browser if both are enabled

  • vitest: Handle function config inside defineWorkspace

  • vitest: Remove excessive listeners when running without isolation, don't reset the state

  • vitest: Auto-enable "github-actions" only where users didn't configure reporters

  • vitest: Support more array cli options

  • vitest: Add types for the new global jsdom variable

  • vitest: Expose onTestFinished globally

  • vitest: Disable optimizer by default until it's stable

  • vitest: Delegate snapshot options to workspace from root config

  • vitest: Fix optimizeDeps.disabled warnings on Vite 5.1

  • vm: Handle disableConsoleIntercept config

  • vm: Improve error when module is not found