vitest
5.1.1 · 18 Nov 2026MIT193.3M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 0.29.5 to 3.2.6
82 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
1 advisory still affects 3.2.6
- Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mockmoderate · GHSA-82fw-gwwq-j7x9
Upgrading to 4.1.11 clears it.
Fixes 1 advisory affecting 0.29.5
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
Release by release
- Fixed
Pin last supported vite-node version
- Fixed
- New
api: Add
allowWriteandallowExecoptions toapi[backport to v3] - Fixed
browser: Disable client
cdpAPI whenallowWrite/allowExec: false[backport to v3]
- New
- Fixed
Use correct path for optimisation of strip-literal
- Fixed
Print uint and buffer as a simple string
- Fixed
browser: Show a helpful error when spying on an export
- Fixed
cli:
vitest run --watchshould be watch-mode
- Fixed
- New
browser: Use base url instead of vitest
- New
ui: Show test annotations and metadata in the test report tab
- Fixed
Rerun tests when project's setup file is changed
- Fixed
Revert
expect.anyreturn type
- New
- New
Support rolldown-vite
- Fixed
browser: Calculate prepare time from
createTesterscall on the main thread - Fixed
browser: Optimize build output and always prebundle vitest
- Fixed
browser: Make custom locators available in
vitest-browser-*packages - Fixed
expect: Ensure we can always self
toEqual - Fixed
reporter: Allow
dotreporter to work in non interactive terminals
- New
- Fixed
Use sha1 instead of md5 for hashing
- Fixed
expect: Fix chai import in dts
- Fixed
expect: Export
DeeplyAllowMatchers
- Fixed
- Deprecated
Deprecate
workspacein favor ofprojects - New
Provide
ctx.signal - New
Support custom colors for
test.name - New
Add
vi.mockObjectto automock any object
- Deprecated
3.1.4nothing new or fixed in the note
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.
16 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.