@vitest/browser-playwright breaking changes
@vitest/browser-playwright 5.1.1 (November 18, 2026) is its newest release with breaking changes, 2 of them. The first: Timeout errors are now thrown as dedicated error classes instead of Error in @vitest/browser-playwright 5.1.1. Every breaking API change we have recorded in @vitest/browser-playwright on npm: 14 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
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.
@vitest/browser-playwright 5.1.1 breaking changes
- Behavior changed
Test timeouts now throw timeout error classes rather than plain Error, so code that checks the thrown error's type or name may need updating. github.com - Behavior changed
signal
Each retry attempt of a test gets a new signal instead of sharing one, so code that relies on a single signal across retries may behave differently. github.com
@vitest/browser-playwright 5.1.0 breaking changes
- Behavior changed
A run where a tester cannot connect to the browser now fails instead of passing silently. Check CI setups that depended on the previous behavior. github.com - Default changed
The default browser port is now 23315. If you relied on the previous default port, set the port explicitly. github.com
@vitest/browser-playwright 5.0.4 breaking changes
- Behavior changed
Runs that hit git or location filter errors now fail instead of continuing. Fix the filter or git setup so the run succeeds. github.com - Behavior changed
maxWorkers
With a custom maxWorkers setting, performance can degrade because Vitest now opens fewer browser instances by default. Review maxWorkers if you rely on the old browser count. github.com - Default changed
fsModuleCache
The filesystem module cache is on by default in this release. Set fsModuleCache explicitly if you need the previous behavior. github.com - Signature changed
PlaywrightBrowserProvider.close
Was close(): Promise<void>; now close(options?: BrowserProviderCloseOptions): Promise<void>. npmjs.com
@vitest/browser-playwright 5.0.0-rc.1 breaking changes
- Behavior changed
Failure screenshots in browser mode are now saved in attachmentsDir. Check any tooling that expects them in the previous location. github.com
@vitest/browser-playwright 5.0.0-beta.5 breaking changes
- Behavior changed
The browser orchestrator HTML request now requires a sessionId. Custom clients making this request must include it. github.com
@vitest/browser-playwright 5.0.0-beta.4 breaking changes
- Behavior changed
toHaveTextContent
toHaveTextContent is now strict. Use toMatchTextContent for the previous looser matching. github.com - Default changed
locators.exact
Locators in browser mode now enable exact matching by default. Code that relied on the previous non-exact matching must set locators.exact explicitly. github.com
Older versions
2 older versions.
Show 2 older versions
@vitest/browser-playwright 5.0.0-beta.3 breaking changes
- Behavior changed
Vitest 5 requires Node.js 22. Projects on older Node.js versions must upgrade Node.js before upgrading. github.com
@vitest/browser-playwright 4.1.11 breaking changes
- Behavior changed
Redirect mocks only work for paths in the fs allowlist now. Check that any redirect mocks you use point to allowed paths. github.com
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.