Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

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

Open
kamleshchandnani opened this issue Jul 8, 2020 · 0 comments

Comments

@kamleshchandnani
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant