vitest
5.1.1 · 18 Nov 2026MIT193.3M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 0.29.1 to 0.34.6
27 releases in betweenevery note read
- 23
- changes to make
- 0
- advisories fixed
- 62
- new
- 198
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.34.0
- Breaking0.34.0
- Breaking0.34.0
- Breaking0.34.0
- Breaking0.34.0
- Breaking0.34.0
- Breaking0.34.0
- Breaking0.33.0
- Breaking0.32.0
- Breaking0.32.0
Security
1 advisory still affects 0.34.6
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
Upgrading to 3.2.6 clears it.
Release by release
- Fixed
Overwrite global URL with environment's
- Fixed
Correctly resolve external dependencies loaded by custom environments
- Fixed
runner: The fixture of
test.extendshould be init once time in all test
- Fixed
- New
config: Add
diffoption - New
coverage: Add
coverage['100']to istanbul provider - New
vitest: Support
vi.waitFormethod - New
vitest: Allow using unprocessed environment files
- New
- Fixed
Resolving dep optimizer issues with workspace
- Fixed
Don't process config file twice
- Fixed
coverage: Log info only when terminal reporter is used
- Fixed
happy-dom: Use the nodejs console in happy-dom v11
- Fixed
- New
coverage: Add
allowExternaloption - New
vitest: Export all reporters in
vitest/reporters - New
Add workspace config files to default coverage excludes
- Fixed
Should remove mockPath from callstack whether success or failed
- New
- New
Allow importing CSS and assets inside external dependencies when using
--experimental-vm-threads - New
vitest: Allow calling
ctx.skip()inside the running test - New
ui: Add support for ui coverage with subdir option
- New
dot-renderer: Speed up getTests
- New
- Fixed
Pass
--experimental-vm-worker-memory-limittotinypool
- Fixed
- Breaking
Transform mode affects only test files, not regular files
- Breaking
Custom environment now should be processed before Vitest can consume it. It means that you cannot specify a path to a TS file or use import paths that should be processed by Vite.
- Breaking
Disable
coverage.reportOnFailureby default - Breaking
Remove
@vitest/coverage-c8package
- Breaking
- Breaking
Revert default include patterns
- New
Add missing JSDom living keys
- Fixed
vite-node: Don't fail when importing Promise module
- Fixed
vite-node: Allow importing node:test
- Breaking
1 other line we could not sort, mostly version bumps
- 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.
4 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.