Migrating to Vitest v4.0.14
Version v4.0.14 introduces 1 breaking change. This guide details how to update your code.
Released: 11/25/2025
1
Breaking Changes
3
Migration Steps
16
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
utils.configurePrettyDOMrunner task full namestoMatchScreenshot UI tabbed viewcollectimportprepareVITEST_POOL_IDVITEST_WORKER_IDpostMessage (worker ports)debugobugonCancelviewport scalingcircular modules (coverage)expect schema functionjsdom abort signalsBreaking Changes
●Issue #1
Renamed `collect` to `import` and removed `prepare`. Update any configuration or code that referenced `collect` or `prepare` to use the new `import` option.
Migration Steps
- 1Replace any usage of the old `collect` option with `import`.
- 2Remove references to the now‑removed `prepare` option.
- 3If you relied on the previous `debug` logger, update imports to use the new `obug` logger.
Release Summary
Vitest v4.0.14 introduces experimental browser, runner, and UI features, adds several bug fixes, and renames `collect` to `import` (removing `prepare`), requiring a small migration for affected configurations.
Need More Details?
View the full release notes and all changes for Vitest v4.0.14.
View Full Changelog