React 18 & ReactDOM.unmountComponentAtNode() shows warning and does not work #26690
Unanswered
d-kls
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey i am fairly new to Cypress (& Cypress Component Testing). This is my test case:
I need to unmount the
TestComponent
, to check some functionality, after having checked it after mounting. I implemented it as referenced in the docs, but this throws a warning inside the console:while also not unmounting my component:

Now before i issue a bug i wanted to check here if perhaps i had missed something about how to unmount the component in React 18 with Cypress correctly.
Used versions:
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions