-
Notifications
You must be signed in to change notification settings - Fork 3.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
The React18 support in Component Testing doesn't work #23081
Comments
Just an update you need two tests in the spec to encounter the error. I've added the reproduction above @rockindahizzy. |
Thanks for the reproduction, @joshwooding! |
Uh oh, I guess we forgot pass through the React 18 specific unmount: cypress/npm/react18/src/index.ts Lines 31 to 41 in c058bf2
The main test suite (which is huge) only runs against Big oversight, let's fix this and ship a patch in the next release. This makes |
Hey, for some reason I couldn't find this issue through a github search. It was only by chance that I was able to find it with my eyes. Maybe this comment will help the following seekers:
|
PR is here to fix it: https://github.com/cypress-io/cypress/pull/23204/files |
The code for this is done in cypress-io/cypress#23204, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Currently when running a CT using the new entry "cypress/react18" I get the following error:
Which is thrown from
cypress/npm/react/src/createMount.ts
Line 172 in c058bf2
Desired behavior
No response
Test code to reproduce
I can't provide a reproduction at the moment but will provide one soon. Using the react18 entry in a CT suite should cause it immediately.https://github.com/joshwooding/cypress-react18-repro
Cypress Version
10.4.0
Other
No response
The text was updated successfully, but these errors were encountered: