import { DenoPact } from "https://deno.land/x/pact@0.1.0/src/deps.ts";
Properties
private
interaction: Pact.InteractionHandle | nullprivate
pact: Pact.PactHandle | nullprivate
verifierHandle: Pact.VerifierHandle | nullMethods
private
arr2Ptrs(arr: string[])private
arrJson2Ptrs(arr: { [key: string]: string | boolean; }[])addMetaDataToPact(value: string, key?)
createMockServerForTransport()
transport: string,
address?,
port?,
transportOptions?: 0 | any,
executeTest(callback: () => Promise<void>)
given(description: string)
givenWithParam()
description: string,
name: string,
value: string,
logMessage(msg: string, level?)
newInteraction(description: string)
newPact(consumer_name: string, provider_name: string)
newSyncMessageInteraction(description: string)
pactFfi()
setPactSpecification(specification?: Pact.PactSpecification)
setupLoggers(logLevel?: Pact.LevelFilter)
syncHttpSetRequestContents(contents: any, contentType: string)
syncHttpSetRequestDescription(description: string)
syncHttpSetResponseContents(contents: any, contentType: string)
uponReceiving(description: string)
usingPactPlugin(pluginName: string, pluginVersion?)
verifier()
verifierAddDirectorySource(args: { pathToDir: string; })
verifierAddFileSource(args: { pathToFile: string; })
verifierAddProviderTransports(args: { protocol?: string; path?: string; scheme?: string; port?: number; }[])
verifierAddUrlSource(args: { url: string; username?: string; password?: string; token?: string; })
verifierBrokerSource(args: { url: string; username?: string; password?: string; token?: string; })
verifierBrokerSourceWithSelectors(args: { url: string; username?: string; password?: string; token?: string; enablePending?: boolean; includeWipPactsSince?: string | true; providerTags?: string[]; providerBranch?: string; consumerVersionSelectors?: { [key: string]: string | boolean; }[]; consumerVersionTags?: string[]; })
verifierSetColouredOutput(enable?)
verifierSetConsumerFilters(args: { names?: string[]; })
verifierSetFilterInfo(args: { description?: string; state?: string; noState?: boolean; })
verifierSetProviderInfo(args: { name?: string; scheme?: string; host?: string; port?: number; path?: string; })
verifierSetPublishOptions(args: { providerVersion?: string; buildUrl?: string; providerBranch?: string; providerTags?: string[]; })
verifierSetVerificationOptions(args: { disableSslVerification: boolean; requestTime?: number; })
withBody()
withQueryParamV2(params: { name: string; value: string; }[])
withRequest(path: string, method?)
withResponse(code: number)
writePactFiles(pactDir?: string, writePactIfNoMatches?: boolean)