wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
16 lines (15 loc) • 789 B
TypeScript
import { type MessageInitShape } from '@bufbuild/protobuf';
import { Transport } from '@connectrpc/connect';
import { type RecomposeGraphResponseSchema } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb';
import { Client } from '../../src/core/client/client.js';
type RecomposeResponse = MessageInitShape<typeof RecomposeGraphResponseSchema>;
export declare function createMockTransport(response: RecomposeResponse): Transport;
export declare function createTestClient(response: RecomposeResponse): Client;
export declare function runRecompose(response: RecomposeResponse, opts?: {
isMonograph?: boolean;
namespace?: string;
failOnCompositionError?: boolean;
failOnAdmissionWebhookError?: boolean;
suppressWarnings?: boolean;
}): Promise<void>;
export {};