graphql-testing

Installation
SKILL.md

GraphQL Testing

GraphQL moves risk from URLs to schema + resolvers: one endpoint, client-defined queries, per-field auth.

Test layers

  1. Schema: lint & diff for breaking changes — graphql-inspector diff old.graphql new.graphql, rover subgraph check (federation), graphql-schema-linter.
  2. Resolver units: call resolvers with mocked context/dataloaders.
  3. Operation tests against a running server (in-memory executeOperation or HTTP).
  4. Contract: persisted queries/operations used by real clients must still validate against the new schema (graphql-inspector validate 'src/**/*.graphql' schema.graphql).
  5. Non-functional: complexity, depth, rate limits, N+1, latency.
Installs
3
GitHub Stars
4
First Seen
Oct 24, 2026