@testing-library/jest-dom breaking changes
@testing-library/jest-dom 8.0.0 (November 19, 2026) is its newest release with breaking changes. The first: Drops support for vitest versions lower than 5 in @testing-library/jest-dom 8.0.0. Every breaking API change we have recorded in @testing-library/jest-dom on npm: 11 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.0.0, released November 19, 2026. Source repository
Its 7.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 7.0.0 to 8.0.0: 1 breaking change in 1 version.
- From 6.0.0 to 8.0.0: 9 breaking changes in 6 versions.
@testing-library/jest-dom 8.0.0 breaking changes
- Removed
Support for vitest versions below 5 has been removed. Upgrade vitest to version 5 or later before using this release. github.com
@testing-library/jest-dom 7.0.0 breaking changes
- Removed
The minimum supported Node.js version is now 22, so projects on older Node.js versions must upgrade before using this release. github.com - Configuration changed
The @testing-library/dom package is now a required peer dependency, so projects must install it alongside jest-dom. github.com
@testing-library/jest-dom 6.4.7 breaking changes
- Signature changed
matchers:MatchersStandalone.toHaveClass
Was toHaveClass: (expected: any, ...rest: string[]) => MatcherReturnType; now toHaveClass(expected: any, ...rest: string[]) : MatcherReturnType. npmjs.com
@testing-library/jest-dom 6.4.2 breaking changes
- Signature changed
matchers:MatchersStandalone.toHaveRole
Was toHaveRole(role: ByRoleMatcher): R; now toHaveRole(role: ARIARole | (string & {})): R. npmjs.com - Signature changed
matchers:TestingLibraryMatchers.toHaveRole
Was toHaveRole(role: ByRoleMatcher): R; now toHaveRole(role: ARIARole | (string & {})): R. npmjs.com
@testing-library/jest-dom 6.4.1 breaking changes
- Signature changed
matchers:MatchersStandalone
Was type MatchersStandalone = {[T in keyof TLM]: (expected: any, ...rest: Parameters<TLM[T]>) => MatcherReturnType} & OverloadedMatchers; now type MatchersStandalone = {[T in keyof _TLM<any, void>]: (expected: any, ...rest... npmjs.com
@testing-library/jest-dom 6.2.1 breaking changes
- Removed
matchers:TestingLibraryMatchers
TestingLibraryMatchers was removed in @testing-library/jest-dom 6.2.1 npmjs.com - Signature changed
matchers:default
Was const matchers: matchers.TestingLibraryMatchers<any, void> & Record<string, any> namespace matchers; now const matchersStandalone: matchersStandalone.MatchersStandalone & Record<string, any> namespace matchersStandalone. npmjs.com
Older versions
1 older version.
Show 1 older version
@testing-library/jest-dom 6.0.0 breaking changes
- Removed
Node.js versions below 14 are no longer supported. Upgrade Node.js to 14 or later before using this release. github.com - Removed
@testing-library.jest-dom.extend-expect
The extend-expect import path is gone. Import the default path or a platform-specific path such as @testing-library/jest-dom/vitest instead. github.com
Related packages
- @testing-library/dom
- @testing-library/preact
- @testing-library/react
- @testing-library/react-native
- @testing-library/user-event
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.