supertest
supertest copied to clipboard
Cannot set property domain of [object process] which has only a getter
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"