vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 1.6.1 to 2.0.0
1 release in betweenevery note read
- 21
- changes to make
- 0
- advisories fixed
- 38
- new
- 63
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
2 advisories still affect 2.0.0
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
- Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningcritical · GHSA-9crc-q9x8-hgqq
Upgrading to 3.2.6 clears them.
Release by release
- Breaking
Simplify mock function generic types and align with jest - by @hi-ogawa
- Breaking
Remove
--segfault-retry - Breaking
Run suite hooks in a stack
- Breaking
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See #5423 for more details.
- Breaking
1 internal line (docs, tests, tooling) left out.
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.