Pooja Parekh
Pooja Parekh

Reputation: 21

React GQL testing Error for MOCK PROVIDER

When testing a component that requires an Apollo Provider with the provided MockedProvider I get the following error:

Invariant Violation: Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql

enter image description here

Upvotes: 2

Views: 360

Answers (0)

Related Questions