-
Notifications
You must be signed in to change notification settings - Fork 4.6k
RN: Remove react-test-renderer dependency
#71422
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 1.92 MB ℹ️ View Unchanged
|
|
Flaky tests detected in bb04d1c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17343468869
|
Mamaduka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @tyxla!
The changes look good to me ✅
What?
This PR suggests removing the
react-test-rendererdependency.Part of #71336.
Why?
react-test-rendereris deprecated in React 19 and removing it helps the React 19 upgrade and keeps it smaller (see #61521 and #71336).This dependency was only used for JSDoc types, so removing it is cheap.
How?
We're retrieving the corresponding types from
@testing-library/react-native, which still usesreact-test-rendererunder the hood, but we're no longer directly depending on it. That means that when RN migrates away from it, we won't have to do anything.We're also removing the
react-test-rendererdependency from the repo altogether.Testing Instructions
react-test-rendererTesting Instructions for Keyboard
Same
Screenshots or screencast
None