useSelect: update unit tests to testing-library#40229
Conversation
|
Size Change: 0 B Total Size: 1.22 MB ℹ️ View Unchanged
|
youknowriad
left a comment
There was a problem hiding this comment.
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
useSelectunit tests to use@testing-library/reactAPI instead of using the React test renderer directly.I'm working on some improvements to
useSelectasync mode (see #40093) and I'll need to add more unit tests to cover the functionality. This is the first step.