Module test

Module test 

Source
Expand description

Test utilities for running and interacting with a GraphQL gateway.

This module provides functionality for:

  • Configuring and starting a gateway instance
  • Executing GraphQL queries against the gateway
  • Building and loading extensions

Structs§

GraphqlCollectedStreamingResponse
Represents a collected GraphQL subscription response.
GraphqlRequest
Represents a GraphQL request.
GraphqlResponse
Represents a GraphQL response.
GraphqlStreamingResponse
Represents a GraphQL subscription response.
GraphqlSubgraph
A dynamic subgraph implementation that can be started as a mock GraphQL server.
GraphqlSubgraphBuilder
A builder for dynamic GraphQL schemas.
TestGateway
A test runner that can start a gateway and execute GraphQL queries against it.
TestGatewayBuilder
Builder pattern to create a TestGateway.
VirtualSubgraph
A subgraph that only contains extension definitions. We do not spawn a GraphQL server for this subgraph.

Enums§

LogLevel
Log level for the test process output. Default value is LogLevel::Error.