supertest icon indicating copy to clipboard operation
supertest copied to clipboard

Cannot set property domain of [object process] which has only a getter

Open pnutmath opened this issue 3 years ago • 0 comments

I am infrequently getting error in response of supertest request, sometime runs sometime fails while running all test suits together.

Cannot set property domain of [object process] which has only a getter

Test Code

    request(app)
      .post('/login')
      .send({
        username: 'abc',
        code: 'xyz',
      })
      .end(function (err, res) {
        console.log(err, res.body)
        done();
      });

Output

null {
        message: 'Cannot set property domain of [object process] which has only a getter'
      }

Versions

  • "jest": "^26.6.3",
    
  • "nock": "^13.0.5",
    
  • "supertest": "^6.0.1"
    

pnutmath avatar Nov 20 '20 11:11 pnutmath