import { SourceLocation } from "graphql"; type SerializedExecutionResult = { data?: TData | null; errors?: ReadonlyArray<{ message: string; locations?: ReadonlyArray; path?: ReadonlyArray; }>; }; declare global { namespace jest { interface Matchers { /** * Will test the equality of GraphQL's `ExecutionResult`. * * In opposite to the simple `toEqual` it will test the `errors` field * with `GraphqQLErrors`. Specifically it will test the equlity of the * properties `message`, `locations` and `path`. * @param expected */ toEqualExecutionResult(expected: SerializedExecutionResult): R; } } } export {};