As far as I understand it, React Testing Library cleans up your DOM after every test automatically (at least when you're using Jest).
This works for whatever is rendered inside my root node, but anything that's been rendered outside root with Portals is not getting cleaned up and being persisted across tests.
Unfortunately some of my components depend on a modal component that renders with a portal, so once this component has been opened, I have no way to remove it from the DOM in subsequent tests.
How do I get around this issue?