@vitest/browser-preview breaking changes
Updated December 4, 2026
On this page
Latest version 5.1.2, released November 25, 2026. Source repository
Its 5.0.0-beta.3 release requires Node.js 22 or later. Node.js end of life dates.
- From 5.0.0-beta.1 to 5.0.0-rc.4: 40 breaking changes in 10 versions.
@vitest/browser-preview 5.0.0-rc.4 breaking changes
- Default changed
vitest list
vitest list now parses test files statically by default instead of loading them. github.com
@vitest/browser-preview 5.0.0-rc.3 breaking changes
- Behavior changed
toMatchFileSnapshot
toMatchFileSnapshot now rejects when it uses the same snapshot file as toMatchSnapshot. github.com
@vitest/browser-preview 5.0.0-rc.2 breaking changes
- Behavior changed
Coverage report and UI subtree requests now require authentication. github.com - Behavior changed
Redirect mocks now only work for paths in the fs allowlist. github.com - Behavior changed
getBy*
getBy* locators now reject filter-only options, so code using them will fail. github.com
@vitest/browser-preview 5.0.0-rc.1 breaking changes
- Behavior changed
Spies on classes now keep prototype methods on instances, which changes mock behavior. github.com - Behavior changed
Projects can now be nested, which changes how project configs are resolved. github.com - Behavior changed
Browser failure screenshots are now written to attachmentsDir instead of the previous location. github.com - Behavior changed
Temporal can now be mocked without fake timers, which changes how existing mocks behave. github.com - Behavior changed
Inline projects now share one Vite server, which can change their isolation. github.com - Behavior changed
Tests fail when an asynchronous assertion is not awaited, so such tests need an await. github.com - Behavior changed
Promise handling in expect and matcher types changed, which can cause type errors in existing code. github.com - Behavior changed
-t
The -t filter now uses > as the separator between names, so existing filter strings may need updating. github.com - Default changed
Inline projects inherit the root config unless configured otherwise, which can change their settings. github.com
@vitest/browser-preview 5.0.0-beta.7 breaking changes
- Behavior changed
Config is now resolved separately from creating the server, so code relying on the old order may behave differently. github.com - Default changed
The Node compile cache is no longer enabled by default and must be turned on explicitly. github.com
@vitest/browser-preview 5.0.0-beta.6 breaking changes
- Removed
The webdriverio package is removed from Vitest. github.com - Behavior changed
Fake timers now mock Temporal, which can change timer-based tests. github.com - Behavior changed
The UI API now restricts access, which can break tooling that calls it directly. github.com - Default changed
json and junit reporters write output files to .vitest by default. github.com - Default changed
Mocks are now cleared before every test unless configured otherwise. github.com - Default changed
The html reporter writes to .vitest by default. github.com
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
@vitest/browser-preview 5.0.0-beta.5 breaking changes
- Removed
The runner is inlined and no longer published as a separate package. github.com - Behavior changed
The window object is now mutable, which changes how environment setup behaves. github.com
And 4 more in this version.
@vitest/browser-preview 5.0.0-beta.4 breaking changes
- Behavior changed
Calling hoistable methods such as vi.mock outside the top level scope now throws an error. github.com - Behavior changed
toHaveTextContent
toHaveTextContent is now strict; use toMatchTextContent for the previous loose matching. github.com
And 2 more in this version.
@vitest/browser-preview 5.0.0-beta.3 breaking changes
- Behavior changed
Vitest now needs Node.js 22; older Node.js versions are no longer supported. github.com - Behavior changed
expect.poll
expect.poll now fails the test if the polled function does not resolve within the timeout. github.com
@vitest/browser-preview 5.0.0-beta.2 breaking changes
- Removed
Imports from previously deprecated entry points no longer work. github.com - Removed
sequential
Use concurrent instead of the sequential test and suite options, which are removed. github.com
And 4 more in this version.
@vitest/browser-preview 5.0.0-beta.1 breaking changes
- Behavior changed
Object output in some checks is now formatted by pretty-format instead of loupe, so expected output strings may change. github.com - Behavior changed
Changes browser iframe scale behavior in @vitest/browser-preview 5.0.0-beta.1 github.com
And 3 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.