vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
2.1.9 is the newest release of 2.x.
In short
1 new11 fixed
Security
2 advisories affect 2.0.5; 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 2.1.9
Release note
Features
Introduce experimental reported tasks
This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go!
Bug Fixes
Show a difference between string characters if both values are strings
testNamePatternadds leading spacebrowser: Don't bundle
afterEachcleanup hooks in node entrypointbrowser: UserEvent.setup initiates a separate state for userEvent instance
browser: Correctly import optimized module in vi.importActual
browser: Passing options to hover/unhover
browser: Improve unique CSS selector generation
vitest: Remove nuxt from auto inline deps
vitest: Improve
defineProjectanddefineWorkspacetypesvitest: Correctly resolve mocked
node:*imports in__mocks__folderweb-worker: Expose globals on self
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.