{"library":"graphql-query-test-mock","type":"library","category":null,"description":"A library to mock GraphQL queries when testing clients making calls to GraphQL APIs. Ideal for use with Jest and Relay Modern/Apollo, but not bound to any specific client library. Focus is on realistic testing using nock to intercept HTTP requests. Current stable version: 0.12.1. Release cadence is irregular. Key differentiators: variable matching to verify correctness, control over query resolution timing for loading states, ability to simulate HTTP error statuses, and support for sequences of responses for pagination scenarios.","language":"javascript","status":"active","version":"0.12.1","tags":["javascript","graphql","testing","mock","jest","react","relay","relaymodern","apollo","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-query-test-mock","imports":["import { QueryMock } from 'graphql-query-test-mock'","const { QueryMock } = require('graphql-query-test-mock')","import { GraphQLMock } from 'graphql-query-test-mock'"]},{"cmd":"yarn add graphql-query-test-mock","imports":[]},{"cmd":"pnpm add graphql-query-test-mock","imports":[]}],"homepage":"https://github.com/zth/graphql-query-test-mock#readme","github":"https://github.com/zth/graphql-query-test-mock","docs":null,"changelog":null,"pypi":null,"npm":"graphql-query-test-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}