supertest
supertest copied to clipboard
Server not closed if used in async/await
When I await a supertest request inside an async function, the server is not closed (like in .end()
) so I have to do this manually. Is this known? How can I fix it?
This issue has been open for two years and no response, obviously 25 people have the same issue.
Anyone to create a PR?
same problem happened to me
"jest": "^27.0.6" "supertest": "^6.1.4"