I\'m using JEST for unit testing my express routes.
While running the yarn test all my test case are getting passed, but I\'m getting an error
yarn test
I was having the same issue but in my package.json file i added "test": "jest --detectOpenHandles" and ran npm test --detectOpenHandles. I didn't get the error message this time. Maybe you can try doing that.
"test": "jest --detectOpenHandles"
npm test --detectOpenHandles