graphql-query-test-mock
Version:
Mock queries to your GraphQL backend in your Jest tests.
13 lines (10 loc) • 298 B
Flow
// @flow strict
import type { ChangeServerResponseFn, MockGraphQLConfig } from './index';
export const DEFAULT_CONFIG: $Shape<MockGraphQLConfig> = {
matchOnVariables: true,
persist: true
};
export const defaultChangeServerResponseFn: ChangeServerResponseFn = (
_,
response
) => response;