Supertest GraphQL Extension

JSON →
library 1.1.4 ·javascript maintenance
verified May 27, 2026

supertest-graphql extends the popular `supertest` library to provide a streamlined API for testing GraphQL endpoints. It is currently at version 1.1.4 and appears to be in maintenance mode, with minor bug fixes and dependency updates being the primary release activity. The library simplifies sending GraphQL queries, mutations, and even subscriptions over WebSockets, abstracting away the HTTP/WebSocket request details. Key differentiators include its direct integration with `supertest`'s familiar chaining API for assertions and request configuration, explicit methods for queries (`.query()`) and mutations (`.mutate()`), and specific helpers like `.expectNoErrors()` for GraphQL error validation. It also offers dedicated support for testing GraphQL subscriptions via WebSockets, making it a comprehensive tool for end-to-end GraphQL API testing, particularly within a Node.js testing environment like Jest.

total hits 16
actors 6 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France