Migrating to Vitest v5.0.0-beta.1
Version v5.0.0-beta.1 introduces 5 breaking changes. This guide details how to update your code.
Released: 4/23/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
loupe.inspecttest.for/eachbrowser.iframecoverage.include/excludeexpect.toThrow("")Breaking Changes
●Issue #1
Replaced `loupe.inspect` with pretty-format.
●Issue #2
Quotes are removed from string values in `test.for/each` title `$` variable (second attempt).
●Issue #3
Browser iframe scaling behavior has changed.
●Issue #4
Coverage `include/exclude` globs are now less eager, potentially affecting which files are included/excluded.
●Issue #5
The behavior of `toThrow("")` in `expect` has been fixed by reverting changes from a previous PR (#6710).
Migration Steps
- 1Replace all usages of `loupe.inspect` with the new pretty-format mechanism.
- 2Review coverage configuration (`include`/`exclude`) as globs are now less eager.
Release Summary
This release introduces new reporting features and browser snapshot improvements, alongside several breaking changes related to inspection utilities and assertion behavior.
Need More Details?
View the full release notes and all changes for Vitest v5.0.0-beta.1.
View Full Changelog