Closed kzietek closed 2 years ago
Hey @kzietek!
It was intentional.
You should specify the matcher for the request body, like so: nock.post("/test", {})
.
Of course, you could use anything
matcher, but that consider bad practice because you actually don't test what your application sends to the server.
Like mentioned in title, POST requests with body specified result in exception.
I'm on nock 1.2.0
Below is the reproduction code: