You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 fromapollo-server-testing
are both different.#153
The text was updated successfully, but these errors were encountered: