Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork43
Closed
Description
Hello 👋
UsinguseResizeObserver crashes my app's tests. Jest uses JSDom, which apparently doesn't support the ResizeObserver API.
I know we candetect when Jest is running, but React doesn't support conditionally calling hooks, so I don't know how to prevent Jest from crashing. I think the fix has to be done inside the hook.
Metadata
Metadata
Assignees
Labels
No labels