@brightinteractive/bright-js-framework

@brightinteractive/bright-js-framework/plugins/graphql/test-utils

interface GraphQlMockObjectTypeDefinition

Mock implementation of a GraphQL object type.

Mapping from object fields to GraphQL mock values.

interface GraphQlMockTypeDefinition

Mock implementation of a GraphQL type.

Should return a GraphQLPrimitiveValue for primitive types (eg. if you want to change the default value for Int) and a GraphQlMockObjectTypeDefinition for object types.

interface GraphQlTestPluginProps
function graphQLTestPlugin(props: GraphQlTestPluginProps): PluginConstructor

Create test GraphQlPlugin suitable for using in test cases.