When I use react-relay-network-modern-ssr in my component, running jest will get This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with '--detectOpenHandles' to troubleshoot this issue.. The reason cause this problem is that setTimeout block the testing. I think we should clear timeout before resolve or reject.
When I use
react-relay-network-modern-ssr
in my component, runningjest
will getThis usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with '--detectOpenHandles' to troubleshoot this issue.
. The reason cause this problem is thatsetTimeout
block the testing. I think we should clear timeout before resolve or reject.