apollo-server-tests
Installation
SKILL.md
apollo-server-tests
Overview
executeOperation initializes automatically - no startup needed for
unit-style tests against the schema in-process. For HTTP-layer tests
(CORS, middleware, response headers), use supertest against an
ephemeral-port server.
When to use
- Unit tests for resolvers using
executeOperation. - Integration tests for HTTP-layer behaviour using
supertest. - Production-config gates: assert introspection / APQ / hideSchemaDetails settings match your production config.