Skip to content
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

Better messaging about React 18 support #23032

Closed
lmiller1990 opened this issue Aug 1, 2022 · 0 comments · Fixed by #23182
Closed

Better messaging about React 18 support #23032

lmiller1990 opened this issue Aug 1, 2022 · 0 comments · Fixed by #23182
Assignees
Labels
CT Issue related to component testing npm: @cypress/react @cypress/react package issues

Comments

@lmiller1990
Copy link
Contributor

What would you like?

Right now if you use cypress/react with React 18, React gives you a warning in your console. The next release of Cypress ships cypress/react18. We should detect if a user is on React 18, and if they import { mount } from 'cypress/react', we should print a warning telling them to update their import to from cypress/react to cypress/react18.

PR landing React 18 is here: #22876

Why is this needed?

So users know that we've got support for the version of React they are using.

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CT Issue related to component testing npm: @cypress/react @cypress/react package issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants