-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Dependencies: Update @testing-library/react to v14 #53682
Conversation
Size Change: -48 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
This is likely not the real reason. Instead, I noticed that the But do you know how we can use |
Thanks, @jsnajdr, that's even better! The
That's a great idea, looking forward to experiencing the test speed improvements 🚀 |
Cool, and the new suggestions to use high-level methods like |
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.
if it's really all green again now.
Indeed, and we benefit from them immediately after upgrading, that's why I wanted to use the recommended set of ESLint rules when enabling the |
What?
This PR updates
@testing-library/react
to v14.Why?
It's been a while since we migrated to React 18, and we're even using the latest
@testing-library/user-event
, but we have been using an obsolete@testing-library/react
version for a while now.How?
We're bumping
@testing-library/react
to v14 and adding an override to use@testing-library/dom@9
because, without it, we'll end up using@testing-library/dom@8
because of its peer dependencies, and that will cause hundreds of tests to fail (see this for more info). We're also fixing a test to use string instead of regex for querying by roles, because that's one of the breaking changes in v9 of@testing-library/dom
.Testing Instructions
Verify all checks are green and tests pass.
Testing Instructions for Keyboard
None.
Screenshots or screencast
None.