Open pke opened 1 year ago
@pke We ran into the same issue and even though running yarn test --detectOpenHandles --no-cache
pointed to this library as the issue. We ran into it when we wanted to mock RN Reanimated for Jest. (https://docs.swmansion.com/react-native-reanimated/docs/guides/testing#setup)
It was a combination of two things for me:
useEffect
that was setting up events on every render instead of just on the initial render. (Not specifying an empty dependency array.)Hope this helps!
@morganick you mean useEffect
in your code?
Describe the bug Jest can not exit because of an open handle created by importing this lib (as described in the README).
Expected behavior
Expect jest to be able to exit properly.
Context