Hello all, I am setting up PACTV3 JS with Jest for...
# pact-js
s
Hello all, I am setting up PACTV3 JS with Jest for one of my project. I am facing some strange behaviour with it. Can someone please help me. I defined couple of interactions and wrote tests in one js file. When I run all 2 tests together, the second tests is failing but both are passing individually when I ran. The exception I am seeing during the fail was,
Copy code
console.error
    Error: Error: read ECONNRESET
        at Object.dispatchError (.....\node_modules\jsdom\lib\jsdom\living\xhr-utils.js:54:19)
        at Request.<anonymous> (....\node_modules\jsdom\lib\jsdom\living\xmlhttprequest.js:675:20)
        at Request.emit (node:events:539:35)
        at Request.onRequestError (........\node_modules\request\request.js:877:8)
        at ClientRequest.emit (node:events:527:28)
        at Socket.socketErrorListener (node:_http_client:454:9)
        at Socket.emit (node:events:527:28)
        at emitErrorNT (node:internal/streams/destroy:151:8)
        at emitErrorCloseNT (node:internal/streams/destroy:116:3)
        at processTicksAndRejections (node:internal/process/task_queues:82:21) undefined

      at VirtualConsole.<anonymous> (node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)       
      at Object.dispatchError (node_modules/jsdom/lib/jsdom/living/xhr-utils.js:57:53)
      at Request.<anonymous> (node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:675:20)       
      at Request.onRequestError (node_modules/request/request.js:877:8)