npm / @testing-library/react
@testing-library/react
What changed in @testing-library/react 12 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
9 breaking4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@testing-library/react 164 changes
Breaking changes 2
Moved to a peer dependency and must be explicitly installed, reducing the chance of conflicting versions and allowing compatible new versions without a major release of @testing-library/react.
Moved to a peer dependency; install it if you typecheck files using @testing-library/react.
Fixes and other changes 2
Avoids re-entrant act when dispatching events.
Updates onCaughtError type inference in RenderOptions to work with React v19.
@testing-library/react 152 changes
Breaking changes 2
Node.js 18.0 is now the minimum supported version.
A new version of @testing-library/dom changes various roles, which may affect role-based queries.
@testing-library/react 142 changes
Breaking changes 1
The minimum supported Node.js version is now 14.x; Node.js 12.x is no longer supported.
Fixes and other changes 1
Prevents the "missing act" warning for queued microtasks.
@testing-library/react 134 changes
Breaking changes 3
The new createRoot API is used by default, enabling support for concurrent features.
Support for React 17 and earlier is dropped.
Set legacyRoot to true to opt out of the new default root behavior; the legacy root API is deprecated in React 18 and triggers console warnings.
Fixes and other changes 1
Adds support for React 18.
@testing-library/react 121 changes
Breaking changes 1
Node 10 is no longer supported because it reached end-of-life.