Skip to content

Error object in Integration test is different compared to error in playground #154

@kamleshchandnani

Description

@kamleshchandnani

I wanted to test the error scenario for my query/mutation but I’m unable to do so. I've reproduced the issue in this PR here at this line.

Basically the problem is that when one of our datasource methods triggers an error then the errorFromResponse method is called and then the error is returned and we see that error in our playground but when you try to test it and mock the error in your test the error you get from query/mutation method from apollo-server-testing are both different.

#153

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