Skip to content

chore(deps): update dependency @testing-library/react to v16 #3340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2025

This PR contains the following updates:

Package Change Age Confidence
@testing-library/react 8.0.0 -> 16.3.0 age confidence

Release Notes

testing-library/react-testing-library (@​testing-library/react)

v16.3.0

Compare Source

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

v16.2.0

Compare Source

Features

v16.1.0

Compare Source

Features

v16.0.1

Compare Source

Bug Fixes
  • Add support for exactOptionalPropertyTypes in TypeScript (#​1351) (3dcd8a9)

v16.0.0

Compare Source

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.

v15.0.7

Compare Source

Bug Fixes
  • Ensure act is not any when React.act is not declared (#​1323) (c1f2957)

v15.0.6

Compare Source

Bug Fixes

v15.0.5

Compare Source

Bug Fixes

v15.0.4

Compare Source

Bug Fixes

v15.0.3

Compare Source

Bug Fixes
  • Don't raise TypeScript errors when hydating document (#​1304) (067d0c6)

v15.0.2

Compare Source

Bug Fixes

v15.0.1

Compare Source

Bug Fixes

v15.0.0

Compare Source

Release
BREAKING CHANGES
  • Minimum supported Node.js version is 18.0
  • New version of @testing-library/dom changes various roles. Check out the changed tests in testing-library/dom-testing-library@2c57055 to get an overview about what changed.

v14.3.1

Compare Source

Bug Fixes

v14.3.0

Compare Source

Features

v14.2.2

Compare Source

Bug Fixes

v14.2.1

Compare Source

Bug Fixes
  • Update types to support all possible react component return values (#​1272) (55e79c2)

v14.2.0

Compare Source

Features
  • add reactStrictMode option to enable strict mode render (#​1241) (0880eba)

v14.1.2

Compare Source

Bug Fixes

v14.1.1

Compare Source

Bug Fixes

v14.1.0

Compare Source

Features

v14.0.0

Compare Source

Bug Fixes
Features
BREAKING CHANGES

v13.4.0

Compare Source

Features
  • renderHook: allow passing of all render options to renderHook (#​1118) (27a9584)

v13.3.0

Compare Source

Features

v13.2.0

Compare Source

Features

v13.1.1

Compare Source

Bug Fixes

v13.1.0

Compare Source

Features

v13.0.1

Compare Source

Bug Fixes

v13.0.0

Compare Source

Features
BREAKING CHANGES

v12.1.5

Compare Source

Bug Fixes

v12.1.4

Compare Source

Bug Fixes
  • Match runtime type of baseElement in TypeScript types (#​1023) (96ed8da)

v12.1.3

Compare Source

Bug Fixes

v12.1.2

Compare Source

Bug Fixes
  • render: Don't reject wrapper types based on statics (#​973) (7f53b56)

v12.1.1

Compare Source

Bug Fixes

v12.1.0

Compare Source

Features

v12.0.0

Compare Source

Bug Fixes
Features
BREAKING CHANGES

v11.2.7

Compare Source

Bug Fixes

v11.2.6

Compare Source

Bug Fixes
  • types: exclude tsconfig from types folder in publish flow (#​893) (58150b9)

v11.2.5

Compare Source

Bug Fixes

v11.2.4

Compare Source

Bug Fixes
  • render: Default to HTMLElement in returned container (#​868) (81c2de9)

v11.2.3

Compare Source

Bug Fixes

v11.2.2

Compare Source

Bug Fixes

v11.2.1

Compare Source

Bug Fixes
  • types: Allow all HTML and SVG elements in render. (#​833) (1dc33b2)

v11.2.0

Compare Source

Features

v11.1.2

Compare Source

Bug Fixes

v11.1.1

Compare Source

Bug Fixes

v11.1.0

Compare Source

Features

v11.0.4

Compare Source

Bug Fixes
  • Trigger ongot-/onlostpointercapture when calling got-/lostpointercapture (#​786) (c546a6f)

v11.0.3

Compare Source

Bug Fixes
  • Trigger onPointerEnter/Leave when calling pointerEnter/Leave (#​784) (c7b5622)

v11.0.2

Compare Source

Bug Fixes

v11.0.1

Compare Source

Bug Fixes

v11.0.0

Compare Source

Features
  • use act to flush instead of custom implementation (#​768) (693228c)
BREAKING CHANGES
  • cleanup is now synchronous and wraps the unmounting process in act.

v10.4.9

Compare Source

Bug Fixes

v10.4.8

Compare Source

Bug Fixes
  • fireEvent: Make sure react dispatches focus/blur events (#​758) (9aac157)

v10.4.7

Compare Source

Bug Fixes
  • unmount: Flush useEffect cleanup functions syncronously (#​746) (b82773c)

v10.4.6

Compare Source

Bug Fixes
  • cleanup: remove scheduler code from flush-microtasks (#​744) (240900c)

v10.4.5

Compare Source

Bug Fixes

v10.4.4

Compare Source

Bug Fixes

v10.4.3

Compare Source

Bug Fixes
  • cleanup: Cleanup should flush microtask queue after unmount (#​632) (aac2e44)

v10.4.2

Compare Source

Bug Fixes
  • cleanup: microtask flushing now supports fake timers (#​720) (5814b29)

v10.4.1

Compare Source

Bug Fixes

v10.4.0

Compare Source

Features

Latest DOM Testing Library release page: https://github.com/testing-library/dom-testing-library/releases/tag/v7.17.0

The big feature is fake timers working with async utils out of the box

v10.3.0

Compare Source

Features

v10.2.1

Compare Source

Bug Fixes

v10.2.0

Compare Source

Features
  • run cleanup() when test runner supports teardown() (#​676) (c91e9a9)

v10.1.0

Compare Source

Features

v10.0.6

Compare Source

Bug Fixes

v10.0.5

Compare Source

Bug Fixes
  • fireEvent: automatically configure fireEvent to be wrapped in act (#​685) (6147830)

v10.0.4

Compare Source

Bug Fixes

v10.0.3

Compare Source

Bug Fixes

v10.0.2

Compare Source

Bug Fixes

v10.0.1

Compare Source

Bug Fixes

v10.0.0

Compare Source

Features
BREAKING CHANGES
Update DOM Testing Library

The latest version of DOM Testing Library has several breaking changes you will want to review the changelog of DOM Testing Library v7.0.0 to ensure you are unaffected.

Drop Node 8

Node 10 or greater is required. Node 8 is out of LTS (#​576) (fccc2cf), closes #​575

remove deprecated cleanup-after-each.js

This file which did nothing but log a warning to the console (#​598) (7942f68)

- import '@​testing-library/react/cleanup-after-each'
+ // nothing! Just remove it

As a general reminder, you should NOT need to use cleanup at all as this is done automatically for you (unless you're using @testing-library/react/pure in which case you know what you're doing... keep using cleanup).

v9.5.0

Compare Source

Features

v9.4.1

Compare Source

Bug Fixes

v9.4.0

Compare Source

Features
  • screen: add screen export (e35c213)

v9.3.3

Compare Source

Bug Fixes

v9.3.2

Compare Source

Bug Fixes

v9.3.1

Compare Source

Bug Fixes

v9.3.0

Compare Source

Features

v9.2.0

Compare Source

Features

v9.1.4

Compare Source

Bug Fixes
  • console.error doesn't have to be a string in act.compat.js (#​476) (139df62)

v9.1.3

Compare Source

Bug Fixes

v9.1.2

Compare Source

Bug Fixes

v9.1.1

Compare Source

Bug Fixes

v9.1.0

Compare Source

Features

v9.0.2

Compare Source

Bug Fixes
  • restore cleanup-after-each and include a deprecation warning (8277b06), closes #​433

v9.0.1

Compare Source

Bug Fixes
  • cleanup-after-each: remove cleanup-after-each file. (#​433) (0b83ca5)

v9.0.0

Compare Source

Features
BREAKING CHANGES
  • deps: If you were using debugDOM before, use prettyDOM instead. Note that debugDOM is different from debug which you get back from render. That is unchanged.
  • cleanup: If your tests were not isolated before (and you referenced the same component between tests) then this change will break your tests. You should keep your tests isolated, but if you're unable/unwilling to do that right away, then you can either run your tests with the environment variable RTL_SKIP_AUTO_CLEANUP set to true or import @testing-library/react/pure instead of @testing-library/react.
  • cleanup-after-each: If any of your code has import '@​testing-library/react/cleanup-after-each' then you need to remove that. It's happening automatically now.

v8.0.9

Compare Source

Bug Fixes

v8.0.8

Compare Source

Bug Fixes

v8.0.7

Compare Source

Bug Fixes

v8.0.6

Compare Source

Bug Fixes

v8.0.5

Compare Source

Bug Fixes
  • build output: the dist directory no longer includes tests (4ada26b)

v8.0.4

Compare Source

Bug Fixes

v8.0.3

Compare Source

Bug Fixes

v8.0.2

Compare Source

Bug Fixes

v8.0.1

Compare Source

Bug Fixes
  • docs pointed to old package (76d112c)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jul 31, 2025
Copy link
Contributor Author

renovate bot commented Jul 31, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn cli npm v11.5.2 does not support Node.js v16.20.2. This version of npm supports the following node versions: `^20.17.0 || >=22.9.0`. You can find the latest version at https://nodejs.org/.
npm warn Unknown env config "store". This will stop working in the next major version of npm.
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: @types/[email protected]
npm error node_modules/@types/react
npm error   @types/react@"*" from @types/[email protected]
npm error   node_modules/@types/hoist-non-react-statics
npm error     @types/hoist-non-react-statics@"3" from [email protected]
npm error     node_modules/react-intl
npm error       peer react-intl@"^6" from the root project
npm error       1 more (react-intl-redux)
npm error     @types/hoist-non-react-statics@"^3.3.1" from [email protected]
npm error     node_modules/react-redux
npm error       peer react-redux@"^8" from the root project
npm error       1 more (react-intl-redux)
npm error   peerOptional @types/react@">=18.0.0" from [email protected]
npm error   node_modules/ink
npm error     ink@"^5.0.1" from @tapjs/[email protected]
npm error     node_modules/@tapjs/reporter
npm error       @tapjs/reporter@"4.0.1" from @tapjs/[email protected]
npm error       node_modules/@tapjs/run
npm error         @tapjs/run@"4.0.1" from [email protected]
npm error         node_modules/tap
npm error   2 more (react-intl, react-redux)
npm error
npm error Could not resolve dependency:
npm error dev @testing-library/react@"16.3.0" from the root project
npm error
npm error Conflicting peer dependency: @types/[email protected]
npm error node_modules/@types/react
npm error   peer @types/react@"^19.0.0" from @types/[email protected]
npm error   node_modules/@types/react-dom
npm error     peerOptional @types/react-dom@"^18.0.0 || ^19.0.0" from @testing-library/[email protected]
npm error     node_modules/@testing-library/react
npm error       dev @testing-library/react@"16.3.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2025-07-31T07_44_59_700Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-07-31T07_44_59_700Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants