forwardemail / forwardemail/supertest

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

Open
#685 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

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**

```javascript
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"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.