react-dom-testing icon indicating copy to clipboard operation
react-dom-testing copied to clipboard

Recipe: how to test component that changes the root element

Open sunesimonsen opened this issue 5 years ago • 0 comments

If you mount a component that returns different root elements when you interact with it, then you need to mount it within a wrapper element.

sunesimonsen avatar Sep 24 '19 18:09 sunesimonsen