Change8

Migrating to Vitest v5.0.0-beta.3

Version v5.0.0-beta.3 introduces 2 breaking changes. This guide details how to update your code.

Released: 5/19/2026

2
Breaking Changes
2
Migration Steps
12
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

expect.pollpage.markcontext.markattachmentsDir__esModulewrapDynamicImportFORCE_COLORtest.includefake-timerstoNotFaketoBeOneOfslowTestThreshold

Breaking Changes

Issue #1

Requires Node.js 22 and Vite 6.4. Users must upgrade their Node.js and Vite versions.

Issue #2

expect.poll will now fail if the provided function does not resolve within the specified timeout period.

Migration Steps

  1. 1
    Ensure Node.js version is 22 or higher.
  2. 2
    Ensure Vite version is 6.4 or higher.

Release Summary

This release introduces support for TypeScript build mode and enhances browser testing capabilities with better tracing and error reporting. It also enforces stricter requirements for Node.js and Vite versions.

Need More Details?

View the full release notes and all changes for Vitest v5.0.0-beta.3.

View Full Changelog