{"library":"graphql-mock","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-mock","imports":["import { graphqlMock } from 'graphql-mock'","const { client } = graphqlMock","graphqlMock.expect(query).reply({...})"]},{"cmd":"yarn add graphql-mock","imports":[]},{"cmd":"pnpm add graphql-mock","imports":[]}],"homepage":"https://github.com/MadRabbit/graphql-mock#readme","github":"ssh://git@github.com/MadRabbit/graphql-mock","docs":null,"changelog":null,"pypi":null,"npm":"graphql-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}