@vitest/expect
5.0.5 · 15 Oct 2026MIT151.9M / weekRepositoryHomepagenpmAtom feed
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
snapshotSerializersoptionreporters: 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
poolOptionsbrowser: Don't exclude node builtins from optimization
browser: Support
coverage.reportsDirectorywith multiple directoriescli: Parse
--browser=<name>correctlycoverage:
.tmpdirectory conflicts with--shardoptionreporters: 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
defineWorkspacevitest: 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
jsdomvariablevitest: Expose onTestFinished globally
vitest: Disable optimizer by default until it's stable
vitest: Delegate snapshot options to workspace from root config
vitest: Fix
optimizeDeps.disabledwarnings on Vite 5.1vm: Handle
disableConsoleInterceptconfigvm: Improve error when module is not found