Testing
Testing GraphQL Subscriptions: WebSockets, Async Generators, and Jest
GraphQL subscriptions are the hardest part of a GraphQL API to test. Queries and mutations are request/response — you call them, they return a value, done. Subscriptions are a persistent, stateful, event-driven channel over WebSockets. The moment you introduce async iteration, connection lifecycle, and client reconnection logic, every testing