Testing React Apollo demo using Cypress component testing
The app copied from blog post Apollo Client and Local State Management with source code at codesandbox.io.
You can also use MockProvider
Test | Description |
---|---|
src/App.spec.js | Tests an application by stubbing window.fetch with a fixture to send back on GraphQL request from the component |
src/Library.spec.js | Wraps Library component with MockedProvider from Apollo testing library |