A minimal React application using Apollo Client with a mocked GitHub's GraphQL API by implementing an own GraphQL schema. Read more about it here. In addition, it uses the mocked GraphQL server to conduct tests for Apollo's Query and Mutation components. Read more about it here.
git clone [email protected]:the-road-to-graphql/react-apollo-client-testing-example.git
- cd react-apollo-client-testing-example
- npm install
- add your own REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN in .env file
- scopes/permissions you need to check: admin:org, repo, user, notifications
- npm test
- Don't miss upcoming Tutorials and Courses
- Check out current React Courses