-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
useSelect: update unit tests to testing-library #40229
Conversation
Size Change: 0 B Total Size: 1.22 MB ℹ️ View Unchanged
|
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.
Makes sense. I have been doing similar refactors in my React 18 upgrade PR.
By the way, have you been looking at |
That would be interesting. |
Not yet, no, mainly focusing on the e2e test failures. I did check very quickly but we have so much logic in useSelect that it's probably going to be a challenge. Feel free to give it a try. |
Updates
useSelect
unit tests to use@testing-library/react
API instead of using the React test renderer directly.I'm working on some improvements to
useSelect
async mode (see #40093) and I'll need to add more unit tests to cover the functionality. This is the first step.