Open JayYoungman opened 2 years ago
ApolloLinkRest is not necessarily compatible with MockProvider -- I haven't spent any time with that.
If you're trying to add mocking to mock your REST server out, instead you can use one of the fetch-based mocking libraries.
Our unit tests demonstrate how to use fetchMock: https://github.com/apollographql/apollo-link-rest/blob/5e30e2a0d1e1c71d5ab4f4a66407209716f0307f/src/__tests__/restLink.ts#L66 (as an example).
Hey
Im trying to Mock an API request following the Apollo docs for MockProvider, for some reason jest dom is returning a "?", nothing inside my mockQuery is firing it seems, even the error is not being displayed. Any console logs also don't get rendered.
Does MockProvider even work with rest link? Any help would be much appreciated. Some example code below if it helps
Query
Thanks
/label Question