Skip to content

Debugging nock mismatches trips up every developer in my org #995

@trashhalo

Description

@trashhalo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions