@testing-library/react
16.3.3 · 27 Aug 2026MIT89.5M / weekRepositoryHomepagenpmAtom feed
103 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 16.x · latest line
16.3.3
27 Aug 2026Avoid act() re-entrant when dispatching events
16.3.2
19 Jan 2026Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19
16.3.1
15 Dec 2025Switch to trusted publishing
16.3.0
2 Apr 2025Add bernardobelchior as a contributor for code, and doc
16.2.0
15 Jan 2025Add support for React error handlers
16.1.0
5 Dec 2024Add support for React 19
16.0.1
29 Aug 2024Add support for exactOptionalPropertyTypes in TypeScript
16.0.0
3 Jun 2024- breaking
@testing-library/domwas moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of@testing-library/dominstalled that frequently caused bugs when used with@testing-library/user-event. We will also be able to allow new versions of@testing-library/dombeing used without a SemVer major release of@testing-library/reactby just widening the peer dependency.@types/react-domneeds to be installed if you're typechecking files using@testing-library/react. Move
@testing-library/domand@types/react-domto peer dependencies
- 15.x
15.0.7
7 May 2024Ensure
actis notanywhenReact.actis not declared
15.0.6
1 May 2024Export new act when available
15.0.5
26 Apr 2024Stop restricting
containeroption based onhydrate
15.0.4
23 Apr 2024Ensure
renderHookoptions extend options forrender
15.0.3
23 Apr 2024Don't raise TypeScript errors when hydating
document
15.0.2
13 Apr 2024Improve
legacyRooterror message
15.0.1
11 Apr 2024Stop using nullish coalescing
15.0.0
10 Apr 2024- breaking
Minimum supported Node.js version is 18.0
- breaking
New version of
@testing-library/domchanges various roles. Check out the changed tests in 2c57055 to get an overview about what changed.
- 14.x
14.3.1
11 Apr 2024Stop using nullish coalescing
14.3.0
8 Apr 2024Add support for React 19 Canary
14.2.2
19 Mar 2024Remove unused types
14.2.1
1 Feb 2024Update types to support all possible react component return values
14.2.0
30 Jan 2024Add
reactStrictModeoption to enable strict mode render
14.1.2
17 Nov 2023Revert missing hooks warnings
14.1.0
8 Nov 2023Add warnings when globals are missing
14.0.0
16 Feb 2023- removed
Drop support for Node.js 12.x
- breaking
- breaking
Minimum supported Node.js version is now 14.x
Bug Fixes
Prevent "missing act" warning for queued microtasks
Features
- removed
Drop support for Node.js 12.x
Breaking changes
- breaking
- breaking
Minimum supported Node.js version is now 14.x
- 13.x
13.4.0
4 Sep 2022renderHook: allow passing of all render options to renderHook
13.3.0
28 May 2022Use
globalThisif available
13.2.0
3 May 2022Export RenderHookOptions type
13.1.1
15 Apr 2022TS: export interface RenderHookResult
13.1.0
15 Apr 2022Add
renderHook
13.0.1
11 Apr 2022Specify a non-* version for @types/react-dom
13.0.0
31 Mar 2022- breaking
Drop support for React 17 and earlier. We'll use the new
createRootAPI by default which comes with a set of changes while also enabling support for concurrent features.
To opt-out of this change you can userender(ui, { legacyRoot: true } ). But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings. Add support for React 18
- 12.x
12.1.5
11 Apr 2022Only supports React < 18
12.1.4
9 Mar 2022Match runtime type of baseElement in TypeScript types
12.1.3
15 Feb 2022Add
@types/react-domas a direct dependency
12.1.2
3 Oct 2021render: Don't reject wrapper types based on statics
12.1.1
27 Sep 2021TS: make wrapper allow a simple function comp
12.1.0
11 Sep 2021Improve JSDocs for RenderOptions
12.0.0
23 Jun 2021- removed
Drop support for node 10
- breaking
Node 10 is no longer supported. It reached its end-of-life on 30.04.2021.
Bump testing-library/dom to v8 alpha
Bug Fixes
Bump testing-library/dom to v8 alpha
Update @testing-library/dom
Features
Bump @testing-library/dom
- removed
Drop support for node 10
Breaking changes
- breaking
Bump
@testing-library/domto 8.0.0. Please check out the@testing-library/dom@8.0.0release page for a detailed list of breaking changes. - breaking
Node 10 is no longer supported. It reached its end-of-life on 30.04.2021.
- 11.x
11.2.7
14 May 2021Guard against
processnot being defined
11.2.6
30 Mar 2021types: exclude tsconfig from types folder in publish flow
11.2.5
2 Feb 2021render: add default type for Queries parameter
11.2.4
2 Feb 2021render: Default to HTMLElement in returned container
11.2.3
7 Jan 2021Return type of unmount is
void
11.2.2
20 Nov 2020dependencies: bump dom testing library
11.2.1
19 Nov 2020types: Allow all HTML and SVG elements in render.
11.2.0
18 Nov 2020Bump dom testing library
11.1.2
11 Nov 2020Import pretty-format from @testing-library/dom
11.1.1
3 Nov 2020Upgrade dependencies, typescript, @testing-library/dom etc
11.1.0
14 Oct 2020Only updates a dependency:@testing-library/dom 7.26.0