@vitest/spy
5.0.5 · 15 Oct 2026MIT202.7M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
3 new21 fixed
Release note
Experimental Features
Support openTelemetry for browser mode
Support TRACEPARENT and TRACESTATE environment variables for OpenTelemetry context propagation
Bug Fixes
Improve asymmetric matcher diff readability by unwrapping container matchers
Improve runner error when importing outside of test context
Replace crypto.randomUUID to allow insecure environments (fix #9…
Handle null options in
addEventHandler#9371Typo in browser.provider error
browser: Fix
process.envandimport.meta.envdefines in inline projectbrowser: Fix upload File instance
browser: Fix invalid project token for artifacts assets
browser: Log
ErrorEvent.messagewhen unhandledErrorEvent.erroris nullbrowser: Support
fileParallelismon an instancecoverage: Remove unnecessary
istanbul-lib-source-mapsusagecoverage: Apply patch from istanbuljs/istanbuljs#837
fsModuleCache: Don't store importers in cache
fsModuleCache: Add importers alongside importedModules
mocker: Fix mock transform with class
pool: Validate environment options when reusing the worker
pool: Handle worker start failures gracefully
reporter: Report test module if it failed to run
runner: Respect nested test.only within describe.only
typecheck: Improve error message when tsc outputs help text
ui: Detect gzip by magic numbers instead of Content-Type header in html reporter
webdriverio: Fall back to WebDriver Classic #9244