UNPKG

@pactflow/pact-msw-adapter

Version:

> Generate pact contracts from the recorded mock service worker interactions.

12 lines (11 loc) 468 B
import { PactFile, MatchedRequest } from "./pactMswAdapter"; import { JSONValue } from "./utils/utils"; export declare const readBody: (input: Request | Response) => Promise<JSONValue | FormData | undefined>; export declare const convertMswMatchToPact: ({ consumer, provider, matches, headers, }: { consumer: string; provider: string; matches: MatchedRequest[]; headers?: { excludeHeaders: string[] | undefined; }; }) => Promise<PactFile>;