vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
1.6.1 is the newest release of 1.x.
In short
13 fixed
Security
2 advisories affect 1.2.2; 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
Bug Fixes
coverage: Remove
coverage/.tmpfiles after runcoverage: Don't crash when re-run removes earlier run's reports
expect: Improve
toThrow(asymmetricMatcher)failure messageforks: Set correct
VITEST_POOL_IDthreads: Mention common work-around for the logged error
typecheck: Fix
ignoreSourceErrorsin run modevite-node: Provide import.meta.filename and dirname
vitest: Expose getHooks & setHooks
vitest: Test deep dependencies change detection
vitest: Throw an error if vi.mock is exported
vitest: Allow
useFakeTimersto fakerequestIdleCallbackon non browservitest: Support older NodeJS with async
import.meta.resolvevitest: Don't throw an error if mocked file was already imported
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.