UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

6 lines (5 loc) 573 B
import type { AnyMockDescriptorType, CaseExample, MatchContext } from '../../entities/types'; import type { WritingCaseContract } from '../WritingCaseContract'; import type { ReadingCaseContract } from '../ReadingCaseContract'; import type { InvokingScaffold } from './types'; export declare const executeExample: <T extends AnyMockDescriptorType, R>(example: CaseExample, { stateHandlers, trigger, triggers, names, testErrorResponse, testResponse, }: InvokingScaffold<T, R>, contract: WritingCaseContract | ReadingCaseContract, context: MatchContext) => Promise<unknown>;