![]() My files are separated such that I don't call app.listen on the app imported into testing files, so that's not it. ![]() Some other questions I was reading through with similar warnings in Jest, people recommended not starting app.listen(3000, () => console.log('Listening on port 3000')) for testing. The issue could also be Jest, I'm honestly not sure. I've read through the documentation but just can't figure it out. I can't figure out what's wrong, but it appears the issue is related to supertest itself. Jest has detected the following 1 open handle potentially keeping Jest from exiting:Īt (node_modules/supertest/lib/test.js:61:33)Īt new Test (node_modules/supertest/lib/test.js:38:12)Īt Object.post (node_modules/supertest/index.js:27:14)Īt TestScheduler.scheduleTests runJest _run10000 runCLI of my other test files are turning up similar warnings with a. When run npm test -runInBand -detectOpenHandles I get the following error: PASS tests/ In my sample app I have: import io, = require('./testData').users However I'd like to write some tests in doing so. I'm trying to figure out how to write a Typescript/React app which uses socket.io to communicate to a server and thus other clients.
0 Comments
Leave a Reply. |