vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 0.31.1 to 4.1.11
107 releases in betweenevery note read
Reading releases, release notes and advisories…
Start here
Before you upgrade
Tick each one off as you go- Breaking4.1.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 1 advisory affecting 0.31.1
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
Release by release
- Fixed
Revive global concurrency limit for test lifecycle [backport to v4]
- Fixed
browser: Encode iframeId in tester iframe URL [backport to v4]
- Fixed
browser: Trigger playwright/chromium gc on lower disk availability [backport to v4]
- Fixed
mocker: Restrict redirect mocks to the fs allowlist [backport to v4]
- Fixed
- Fixed
browser: Check fs access in builtin commands [backport to v4]
- Fixed
vm: Fix external module resolve error with deps optimizer query for encoded URI [backport to v4]
- Fixed
- Fixed
Fix
importOriginalwith optimizer and query import [backport to v4] - by Hiroshi Ogawa, David Harris, Codexand Vladimir in #10546 - Fixed
browser: Wait for orchestrator readiness before resolving browser sessions [backport to v4] - by Vladimir and Séamus O'Connor in #10555
- Fixed
- Fixed
mocker: Hoist vi.mock() for vite-plus/test imports [backport to v4] - by Hiroshi Ogawa, LongYinan, Claude Opus 4.8 and Vladimir in #10548
- Fixed
- Fixed
- Fixed
browser: Disable client
cdpAPI whenallowWrite/allowExec: false[backport to v4] - Fixed
browser: Remove orphaned Playwright route when same module is mocked via multiple ids [backport to v4]
- Fixed
- Fixed
runner: Limit concurrency per task branch in addition to per leaf callbacks (backport)
- Fixed
- New
Stringify diff objects only once
- Fixed
browser: Provide project reference in
ToMatchScreenshotResolvePath - Fixed
Global
sequence.concurrent: truewith top-leveltest(..., { concurrent: false })+ depreactesequentialtest API and options - Fixed
browser: Simplify orchestrator otel carrier
- New
- New
coverage: Istanbul to support
instrumenteroption - Fixed
--project negation excludes browser instances
- Fixed
Project color label on html reporter
- Fixed
Fix
vi.defineHelpercalled as object method
- New
- New
coverage: Default to text reporter
skipFullif agent detected - New
experimental: Expose
assertionas a public field - New
experimental: Support aria snapshot
- New
reporter: Add filterMeta option to json reporter
- New
2 other lines we could not sort, mostly version bumps
- 3.0.1
Revert "fix: re-apply default conditions if using vite 6 or later (#7071)"
- 0.34.0
Most of
deps.options are now moved toserver.depswith a deprecation warning. Please, consider usingdeps.optimizerinstead ofdeps.inline/deps.external. Ideally, we would like to move away from usingserver.deps.inlinealtogether.
22 internal lines (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.