-
Notifications
You must be signed in to change notification settings - Fork 0
feat: supporting react 17 #83
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
| expect(changeSelected).toHaveBeenCalledWith('project2'); | ||
|
|
||
| expect(variable.state('showDropdown')).toBe(false); | ||
| expect(container.querySelector('select')).not.toBeInTheDocument(); |
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.
Was able to replace the showDropdown state check by checking if the dropdown exists in the DOM instead.
kellyjosephprice
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.
Nice!
| "peerDependencies": { | ||
| "react": "16.x" | ||
| "react": "16.x || 17.x", | ||
| "react-dom": "16.x || 17.x" |
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.
TIL
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.
Had to add react-dom to this because @testing-library/react@12 has a peerDep of react-dom: * and that was attempting to pull down react@18.
🧰 Changes
This will incur a breaking release.