Describe the bug
When testing react native code that uses react-query you'll get the following error:
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with --detectOpenHandles to troubleshoot this issue.
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/flextremedev/ReactNativePlayground
- Run "yarn"
- Run "yarn test react-query"
- See error
Expected behavior
I expected the test run to complete without leaving open handles.