You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used with Jest, it keeps complaining about keeping the server alive.
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --runInBand --detectOpenHandles to find leaks.
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.
jest --runInBand --detectOpenHandles
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● TCPSERVERWRAP
29 | };
30 | server = http.createServer(requestHandler);
> 31 | url = await listen(server);
| ^
32 | });
33 |
at Promise (node_modules/test-listen/index.js:4:7)
at module.exports (node_modules/test-listen/index.js:1:51)
at Object.<anonymous> (pages/api/status/__tests__/status.test.ts:31:17)
When used with Jest, it keeps complaining about keeping the server alive.
this is my code
any idea why it's not closing the server?
The text was updated successfully, but these errors were encountered: