UNPKG

@pact-foundation/pact

Version:
10 lines (9 loc) 503 B
import type { ConsumerPact } from '@pact-foundation/pact-core'; import type { PactV4Options, V4InteractionWithPluginResponse, V4MockServer } from './types'; export declare class InteractionWithPluginResponse implements V4InteractionWithPluginResponse { private pact; private opts; protected cleanupFn: () => void; constructor(pact: ConsumerPact, opts: PactV4Options, cleanupFn: () => void); executeTest<T>(testFn: (mockServer: V4MockServer) => Promise<T>): Promise<T | undefined>; }