As of #2820 (v19.0.0) EuiCode and EuiCodeBlock use a React portal to render content. In Kibana, this causes failures in several snapshot tests, giving:
Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.
Initial thought: we may want to provide a .testenv. mock to bypass createPortal.
As of #2820 (v19.0.0)
EuiCodeandEuiCodeBlockuse a React portal to render content. In Kibana, this causes failures in several snapshot tests, giving:Initial thought: we may want to provide a
.testenv.mock to bypasscreatePortal.