What changed in React Testing Library from 15 to 16

8 releases numbered after v15.0.7 up to and including v16.3.3, stable releases only. v15.0.7 and v16.3.3 are the newest stable releases of 15 and 16 we track; this page follows them as new ones ship.

8 changes across 8 releases

Added 2

v16.2.0

  • Add support for React error handlers

v16.1.0

  • Add support for React 19
Changed 2

v16.0.0

  • Move @testing-library/dom to peer dependencies
  • Move @types/react-dom to peer dependencies
Fixed 4

v16.3.3

  • Avoid act() re-entrant when dispatching events

v16.3.2

  • Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19

v16.3.1

  • Switch to trusted publishing

v16.0.1

  • Add support for exactOptionalPropertyTypes in TypeScript

One release in the range carries no categorized changes yet: v16.3.0. Their original notes, where the vendor published any, are below.

Original release notes, newest first

The list above is our reading of these notes; the originals from Testing Library are here, one fold per release.

v16.3.3
16.3.3 (2026-08-27)
Bug Fixes
  • Avoid act() re-entrant when dispatching events (#1468) (20ce75f)

View originalPermalink

v16.3.2
16.3.2 (2026-01-19)
Bug Fixes
  • Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19 (#1438) (f32bd1b)

View originalPermalink

v16.3.1
16.3.1 (2025-12-15)
Bug Fixes

View originalPermalink

v16.3.0

16.3.0 (2025-04-02)

Features
  • add bernardobelchior as a contributor for code, and doc (#1391) (9fc6a75)

View originalPermalink

v16.2.0

16.2.0 (2025-01-15)

Features

View originalPermalink

v16.1.0

16.1.0 (2024-12-05)

Features

View originalPermalink

v16.0.1
16.0.1 (2024-08-29)
Bug Fixes
  • Add support for exactOptionalPropertyTypes in TypeScript (#1351) (3dcd8a9)

View originalPermalink

v16.0.0

16.0.0 (2024-06-03)

Features
  • Move @testing-library/dom and @types/react-dom to peer dependencies (#1305) (a4744fa)
BREAKING CHANGES
  • @testing-library/dom was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of @testing-library/dom installed that frequently caused bugs when used with @testing-library/user-event. We will also be able to allow new versions of @testing-library/dom being used without a SemVer major release of @testing-library/react by just widening the peer dependency. @types/react-dom needs to be installed if you're typechecking files using @testing-library/react.

View originalPermalink