Enzyme doesn't support Portals
tajo opened this issue · 2 comments
tajo commented
Currently, enzyme doesn't support new Portal API.
That makes writing tests harder. So far, I've added tests for <Portal />
since it's pretty trivial but will wait for enzyme with PortalWithState
tests.
ranneyd commented
@tajo have you looked at https://www.npmjs.com/package/enzyme-adapter-react-16
tajo commented
@ranneyd Yes. I even put it into test setup already but it just doesn't work with Portals. Yet.