Jest did not exit one second after the test run has completed using express

前端 未结 5 1761
孤独总比滥情好
孤独总比滥情好 2021-02-05 14:24

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



        
5条回答
  •  生来不讨喜
    2021-02-05 15:04

    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.

提交回复
热议问题