Open viniciusavieira opened 5 years ago
Hi @viniciusavieira
You test was failing because the query in the test and the query in the component was different. Check this one: https://codesandbox.io/embed/apollomockstest-rj3pm.
You test is still failing but because of you asserting now..
Thanks so much @jzabala , this save my day
this is my query
this is my mock
this is my error
what could be happening???
@redreceipt replace your variable contentId to id in your request block.
@redreceipt In the query, you have defined one more __typename
(line-11) but you are not returning it in mocks.
Hello.
I've been using this project in a production level and things have gone good so far. But I've stuck into some problems when I try to write tests to a simple component.
I've followed the example in the docs, and I've setup a codesandbox to display my problem. Basically my querie mock always get the same error and never return the data.
https://codesandbox.io/s/apollomockstest-cwt57