-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drop usage of react-dom/test-utils #1270
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 997c8c1:
|
Thanks Sebastian. Is there any documentation about this change? Are they just deprecating the module? |
c4ed963
to
9e785f6
Compare
ef25833
to
3251377
Compare
3251377
to
997c8c1
Compare
This is the related doc. |
Thanks.. This was created by @eps1lon himself :) https://github.com/reactjs/react.dev/blob/main/src/content/warnings/react-dom-test-utils.md |
Favoring #1294 which adds React 19 support in a SemVer MINOR. |
BREAKING CHANGE
The
legacyRoot
option is no longer supported now thatReactDOM.render
has been removed from React. There is no alternative.To ensure compatibility with React Testing Library 15, make sure you're not using the
legacyRoot
option in any of your calls torender
from React Testing Library.React 18 is still supported but you will see deprecation warnings from
react-dom/test-utils
. Either suppress these warnings or switch to React 19.