@pact-foundation/pact
Version:
Pact for all things Javascript
21 lines (20 loc) • 1.43 kB
TypeScript
import type { ConsumerInteraction, ConsumerPact } from '@pact-foundation/pact-core';
import type { JsonMap } from '../../common/jsonTypes';
import type { Path } from '../../v3';
import type { Comment, CustomComment, PactV4Options, PluginConfig, V4InteractionWithCompleteRequest, V4InteractionWithPlugin, V4InteractionWithRequest, V4Request, V4RequestBuilderFunc, V4UnconfiguredInteraction } from './types';
export declare class UnconfiguredInteraction implements V4UnconfiguredInteraction {
protected pact: ConsumerPact;
protected interaction: ConsumerInteraction;
protected opts: PactV4Options;
protected cleanupFn: () => void;
constructor(pact: ConsumerPact, interaction: ConsumerInteraction, opts: PactV4Options, cleanupFn: () => void);
uponReceiving(description: string): V4UnconfiguredInteraction;
given(state: string, parameters?: JsonMap): V4UnconfiguredInteraction;
pending(pending?: boolean): V4UnconfiguredInteraction;
comment(comment: Comment | CustomComment): V4UnconfiguredInteraction;
testName(name: string): V4UnconfiguredInteraction;
reference(group: string, name: string, value: string): V4UnconfiguredInteraction;
withCompleteRequest(_request: V4Request): V4InteractionWithCompleteRequest;
withRequest(method: string, path: Path, builder?: V4RequestBuilderFunc): V4InteractionWithRequest;
usingPlugin(config: PluginConfig): V4InteractionWithPlugin;
}