0

Jest tests are created to check node js end points. But while running tests together some tests are randomly failing and getting following error. Those tests is working fine while running indually.

Request failed with status code 500

  at createError (node_modules/axios/lib/core/createError.js:16:15)
  at settle (node_modules/axios/lib/core/settle.js:17:12)
  at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:236:11)
  • One common issue is that you are not closing all the resources between tests properly, which might be your issue for one test to work, but a block of tests to not work. – Steven Scott Sep 23 '21 at 14:38

0 Answers0