vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
1 deprecated12 new25 fixed1 internal
- Deprecated
Deprecate watchExclude
Security
2 advisories affect 1.3.0; 3.2.6 fixes them
- CriticalWhen Vitest UI server is listening, arbitrary file can be read and executedGHSA-5xrq-8626-4rwp · 1 Jun 2026Fixed in 3.2.6
- CriticalVitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningGHSA-9crc-q9x8-hgqq · 4 Feb 2025Fixed in 1.6.1
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
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.