I'm getting this error whilst running a test:
Target container is not a DOM element.
pointing to a this piece of code: return ReactDOM.createPortal(
that is creating a modal
I guess jest falls over as the portal exists outside of the scope, how can I tell jest that the portal is within the scope?