Nock is incredibly powerful. But debugging nock misses confuses everyone I know. Even when you turn on nock debug the best you can hope for is a body doesnt match line. But then you don't know why it doesn't match. A lot of developers end up temporarily rewriting tests at that point to intercept the body and call out to deep object checks so they can try and get a sense of whats going on. But the whole thing is a pain.
I'd suggest adding better logs around json body matching that shows a diff between exception vs received body.
Nock is incredibly powerful. But debugging nock misses confuses everyone I know. Even when you turn on nock debug the best you can hope for is a body doesnt match line. But then you don't know why it doesn't match. A lot of developers end up temporarily rewriting tests at that point to intercept the body and call out to deep object checks so they can try and get a sense of whats going on. But the whole thing is a pain.
I'd suggest adding better logs around json body matching that shows a diff between exception vs received body.