Bug: No alternative to Enzyme "attachTo", necessary to render certain libraries such as react-leaflet #20589
Labels
Component: Test Renderer
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 16.13.1
Steps To Reproduce
Link to code example: https://codesandbox.io/s/react-test-renderer-leaflet-mohzp
The current behavior
It raise an error
Map container not found.
The expected behavior
Enzyme's
attachTo
option allow to mount the comment in a more realistic environment, which fixes this bug. But there is no equivalent feature inreact-test-renderer
as far as I know.See PaulLeCam/react-leaflet#246 for more info about the Enzyme fix for this issue.
The text was updated successfully, but these errors were encountered: