unstale

npm / @testing-library/jest-dom

@testing-library/jest-dom

What changed in @testing-library/jest-dom 6 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

5 breaking4 new APIs and options2 tooling1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@testing-library/jest-dom 82 changes

Breaking changes 1

  • Support for Vitest versions lower than 5 was removed; consumers must upgrade to a supported version.

    8.0.0release notes

Tooling 1

@testing-library/jest-dom 75 changes

Breaking changes 2

New APIs and options 2

Fixes and other changes 1

@testing-library/jest-dom 65 changes

Breaking changes 2

  • The extend-expect script was removed; use the default import path or a test platform-specific import path instead.

    6.0.0release notes

  • Node versions below 14 are no longer supported.

    6.0.0release notes

New APIs and options 2

  • Import this path to automatically extend the expect instance for @jest/globals and augment its matcher interface.

    6.0.0release notes

  • Import this path to automatically extend the expect instance for vitest and augment its matcher interface.

    6.0.0release notes

Tooling 1

  • Types are provided locally, supporting jest, @jest/globals, and vitest.

    6.0.0release notes