@vitest/browser 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 4.1.11 to 5.1.1: 39 breaking changes in 15 versions.
- From 4.0.0 to 5.1.1: 63 breaking changes in 29 versions.
@vitest/browser 5.1.1 breaking changes
- Behavior changed
Timeout failures now throw specific timeout error classes rather than a generic Error. Code that checks error.name or the exact error type should be updated to match the new classes. github.com
@vitest/browser 5.1.0 breaking changes
- Default changed
The browser mode default port is now 23315. Users who relied on the previous default port must update their configuration or connections. github.com - Default changed
The trace view now shows only for failing tests by default. Users who want traces for all tests must turn the failure-only mode off. github.com
@vitest/browser 5.0.4 breaking changes
- Behavior changed
maxWorkers
Browser instances now run as workers, so Vitest opens fewer instances by default. Users with a custom maxWorkers setting may see slower runs and should review it. github.com - Default changed
fsModuleCache
The fsModuleCache option is now enabled by default. Users who relied on it being off must set it explicitly. github.com
@vitest/browser 5.0.3 breaking changes
- Signature changed
context:BrowserPage.screenshot
Was screenshot(options?: ScreenshotOptions): Promise<string | {path: string base64: string}>; now screenshot(options?: ScreenshotOptions): Promise<| string | {path: string base64: string}>. npmjs.com
@vitest/browser 5.0.1 breaking changes
- Removed
context:MarkOptions.kind
MarkOptions.kind was removed in @vitest/browser 5.0.1 npmjs.com - Removed
context:MarkOptions.stack
MarkOptions.stack was removed in @vitest/browser 5.0.1 npmjs.com
@vitest/browser 5.0.0 breaking changes
- Removed
asLocator
asLocator was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorByRoleOptions.has
LocatorByRoleOptions.has was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorByRoleOptions.hasNot
LocatorByRoleOptions.hasNot was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorByRoleOptions.hasNotText
LocatorByRoleOptions.hasNotText was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorByRoleOptions.hasText
LocatorByRoleOptions.hasText was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorOptions.has
LocatorOptions.has was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorOptions.hasNot
LocatorOptions.hasNot was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorOptions.hasNotText
LocatorOptions.hasNotText was removed in @vitest/browser 5.0.0 npmjs.com - Removed
context:LocatorOptions.hasText
LocatorOptions.hasText was removed in @vitest/browser 5.0.0 npmjs.com - Removed
locators:Locator.triggerCommand
Locator.triggerCommand was removed in @vitest/browser 5.0.0 npmjs.com
And 4 more in this version. Sign up to see every change
Older versions
36 older versions, each with its first changes. Sign up to see every change
Show 36 older versions
@vitest/browser 5.0.0-rc.4 breaking changes
- Behavior changed
vitest list
vitest list now parses files statically by default instead of previously, which can change its output. github.com
@vitest/browser 5.0.0-rc.3 breaking changes
- Behavior changed
coverage
Coverage now uses the @vitest/istanbuljs packages; setups importing the previous istanbul packages must switch. github.com - Behavior changed
toMatchFileSnapshot
Using the same snapshot file for toMatchFileSnapshot and toMatchSnapshot now rejects; use separate files. github.com
@vitest/browser 5.0.0-rc.1 breaking changes
- Behavior changed
Inline projects now share the Vite server, which can change how they behave. github.com - Behavior changed
Nested project configurations are now supported, which can change how existing project setups are resolved. github.com
And 5 more in this version.
@vitest/browser 5.0.0-beta.7 breaking changes
- Behavior changed
Config resolution is now separate from creating the server; code relying on the old ordering may need adjusting. github.com
@vitest/browser 5.0.0-beta.5 breaking changes
- Behavior changed
Orchestrator html request requires sessionId in @vitest/browser 5.0.0-beta.5 github.com
@vitest/browser 5.0.0-beta.4 breaking changes
- Default changed
locators.exact
locators.exact enabled by default in browser mode in @vitest/browser 5.0.0-beta.4 github.com
@vitest/browser 5.0.0-beta.3 breaking changes
- Configuration changed
@vitest/browser 5.0.0-beta.3 requires Node.js 22 or later github.com
@vitest/browser 5.0.0-beta.2 breaking changes
- Behavior changed
expect package inlined into vitest in @vitest/browser 5.0.0-beta.2 github.com - Behavior changed
locator
Locator is now an object instead of a string in @vitest/browser 5.0.0-beta.2 github.com
@vitest/browser 5.0.0-beta.1 breaking changes
- Behavior changed
Browser iframe scale behavior changed in @vitest/browser 5.0.0-beta.1 github.com
@vitest/browser 4.1.11 breaking changes
- Behavior changed
Redirect mocks that point outside the fs allowlist are now restricted. Code that relies on redirecting mocks to other paths may need its paths added to the allowlist. github.com
@vitest/browser 4.1.10 breaking changes
- Behavior changed
Builtin browser commands now check filesystem access before running, so code that relied on unchecked file access may now be denied. github.com
@vitest/browser 4.1.8 breaking changes
- Behavior changed
cdp
The client cdp API is now disabled when allowWrite or allowExec is set to false. Code that calls cdp under those settings will no longer work and must enable the options or stop using cdp. github.com
@vitest/browser 4.1.5 breaking changes
- Default changed
The default snapshot max output length was increased, so snapshot output that was previously truncated may now be longer. Check snapshots that depend on the old limit. github.com
@vitest/browser 4.1.4 breaking changes
- Default changed
coverage.reporter
When an agent is detected, the text coverage reporter now defaults to skipFull. Users who need full file listings must set skipFull explicitly. github.com
@vitest/browser 4.1.3 breaking changes
- Removed
JestExtendError.context
The context property of JestExtendError is no longer included in verbose error reporting. Code that reads it from those reports must stop relying on it. github.com
@vitest/browser 4.1.1 breaking changes
- Removed
Vitest 4.1.1 no longer supports the Vite 8 beta line. Projects on Vite 8 beta must upgrade Vite to a supported version. github.com
@vitest/browser 4.1.0 breaking changes
- Removed
context:Platform
Platform was removed in @vitest/browser 4.1.0 npmjs.com - Removed
context:StandardScreenshotComparators
StandardScreenshotComparators was removed in @vitest/browser 4.1.0 npmjs.com
And 7 more in this version.
@vitest/browser 4.1.0-beta.5 breaking changes
- Behavior changed
Browser screenshot comparisons use BlazeDiff instead of pixelmatch, so diff output may differ from before. github.com
@vitest/browser 4.1.0-beta.4 breaking changes
- Configuration changed
deepEqual
Setting deepEqual in the chai config is no longer allowed because it is not serializable. Remove it from your config. github.com
@vitest/browser 4.0.14 breaking changes
- Removed
prepare
The runner's prepare step is removed. Code that depends on it will no longer work. github.com - Renamed
collect
The runner's collect step is renamed to import. Code that refers to collect must switch to import. github.com
And 1 more in this version.
@vitest/browser 4.0.12 breaking changes
- Behavior changed
fsModuleCachePath
The fsModuleCachePath option is now inherited by default. Check whether existing cache path configuration still behaves as expected. github.com
@vitest/browser 4.0.7 breaking changes
- Behavior changed
Test files are sorted by project by default, which changes the order in which test files run. Users who depend on the previous order must adjust their setup. github.com
@vitest/browser 4.0.5 breaking changes
- Signature changed
context:UserEvent.selectOptions
Was selectOptions: (element: Element, values: HTMLElement | HTMLElement[] | Locator | Locator[] | string | string[], options?: UserEventSelectOptions) => Promise<void>; now selectOptions: (element: HTMLElement | SVGElement | Locator... npmjs.com
@vitest/browser 4.0.0 breaking changes
- Removed
context:BrowserCommands
BrowserCommands was removed in @vitest/browser 4.0.0 npmjs.com - Removed
context:CDPSession.off
CDPSession.off was removed in @vitest/browser 4.0.0 npmjs.com
And 35 more in this version.
@vitest/browser 4.0.0-beta.19 breaking changes
- Behavior changed
The test pool implementation no longer uses tinypool, so code relying on tinypool-specific pool behavior may need to change. github.com - Behavior changed
coverage.exclude
Non-string entries in coverage.exclude are no longer kept, so configs using other value types need to be updated. github.com
@vitest/browser 4.0.0-beta.14 breaking changes
- Behavior changed
Browser providers are now published as separate packages, so install the provider package you use. github.com
@vitest/browser 4.0.0-beta.12 breaking changes
- Removed
The engines field no longer lists Node 18, so Node 18 is no longer supported. github.com
@vitest/browser 4.0.0-beta.11 breaking changes
- Behavior changed
Only files with vitest.config or vite.config in the name are accepted as project config files. github.com
@vitest/browser 4.0.0-beta.10 breaking changes
- Configuration changed
browser.provider
Pass a provider factory function rather than a provider name string in the browser config. github.com
@vitest/browser 4.0.0-beta.9 breaking changes
- Removed
The ast export from the utils entry is removed. github.com - Removed
minWorkers
minWorkers is removed and is set to 0 automatically outside watch mode. github.com
@vitest/browser 4.0.0-beta.6 breaking changes
- Behavior changed
The spy implementation was rewritten, so mocking behavior may differ from earlier versions. github.com
@vitest/browser 4.0.0-beta.5 breaking changes
- Behavior changed
Modules are now run with Vite's module-runner instead of vite-node, which may change module loading behavior. github.com
@vitest/browser 4.0.0-beta.4 breaking changes
- Behavior changed
environment
Setting the test environment to browser is no longer allowed. github.com
@vitest/browser 4.0.0-beta.3 breaking changes
- Removed
workspace
The workspace option is removed. Use projects instead. github.com
@vitest/browser 4.0.0-beta.2 breaking changes
- Removed
Vitest 4 no longer supports Vite 5. Upgrade Vite to a supported version before upgrading. github.com - Removed
environmentMatchGlobs
environmentMatchGlobs and poolMatchGlobs are removed from configuration. github.com
And 2 more in this version.
@vitest/browser 4.0.0-beta.1 breaking changes
- Removed
basic
The basic reporter is removed. Choose another reporter in your configuration. github.com - Removed
coverage.all
coverage.all is removed and include/exclude behave differently. github.com
And 4 more in this version.
Related packages
- @vitest/ui
- @vitest/expect
- @vitest/browser-playwright
- vitest
- @vitest/coverage-istanbul
- @vitest/coverage-v8
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.