vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
4 new18 fixed
Security
2 advisories affect 1.5.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
Add configuration for diff truncation
Remove unrelated noise from diff for toMatchObject()
Allow custom host for --inspect and --inspect-brk
coverage: V8 to ignore empty lines, comments, types
Bug Fixes
describecalls not taking generic type parametersPrevent hang when
processis mockedDon't check for "node:internal/console/" in console interceptor in case the environment is not Node.js
The value received by toMatch should be a string
Increase stack trace limit for location, don't hardcode suite position
benchmark: Run benchmark suites sequentially
benchmark: Fix benchmark summary of single bench suite
benchmark: Table reporter for non TTY output
expect: Fix
toHaveBeenNthCalledWitherror message when not calledtypes: Pass correct type for suite factory
utils: Fix object diff with getter only property
vite-node: Fix
isValidNodeImportto check"type": "module"firstvitest: Correctly send console events when state changes
vitest: Initiate FakeTimers on demand
vitest: Check unhighlighted code for code frame line limit
vitest: Correctly filter by parent folder
vitest: Close inspector immediately if run is canceled
workspace: Set CWD to config directory, allow overriding local .env
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.