react-dom-testing
react-dom-testing copied to clipboard
Recipe: how to test component that changes the root element
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.