A test framework for executing integration tests against GraphQL services. Current version 0.0.5 uses Promises and supports HTTP POST with configurable endpoint, method, and content type. It returns structured responses with success, status, headers, data, and errors. Differentiators include promise-based chaining usable with Mocha and optional application server integration. Release cadence is irregular (no recent updates).
npm install graphql-testerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a tester with optional URL from env, executing a GraphQL query, and accessing response fields.
Check response.success or response.errors to distinguish client errors.
Confirm server supports GET requests with GraphQL.
Avoid using the 'server' option unless you manage server lifecycle externally.
Access raw response via 'raw' property if you need original response details.
Use 'import { tester } from "graphql-tester"' or 'const { tester } = require("graphql-tester")'.Set NODE_TLS_REJECT_UNAUTHORIZED=0 (only for testing) or configure the server with a valid certificate.
Ensure your GraphQL server is running on the expected host and port.
No dependency data recorded yet.