graphql-mock
JSON →graphql-mock is a declarative mocking library for Apollo GraphQL client testing, inspired by nock/sinon. Version 2.0.0 (latest) provides ESM with TypeScript types. It enables developers to specify exact response data, test failure and loading states, and assert queries/mutations sent by code. Differentiators include seamless integration with react-apollo and react-apollo-hooks, automatic client refresh on reset, and support for variables assertion. Released under MIT license by MadRabbit.
Resources
packagegraphql-mock ↗