Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pact/src/pact-js/pactcore.d.ts>ConsumerInteraction

Pact 🔗 Contract Testing for Deno 🦕, Powered by Rust 🦀
Latest
type alias ConsumerInteraction
import { type ConsumerInteraction } from "https://deno.land/x/pact@0.1.0/src/pact-js/pactcore.d.ts";
definition: PluginInteraction & { uponReceiving: (description: string) => boolean; given: (state: string) => boolean; givenWithParam: (
state: string,
name: string,
value: string,
) => boolean; withRequest: (method: string, path: string) => boolean; withQuery: (
name: string,
index: number,
value: string,
) => boolean; withStatus: (status: number) => boolean; withRequestHeader: (
name: string,
index: number,
value: string,
) => boolean; withRequestBody: (body: string, contentType: string) => boolean; withRequestBinaryBody: (body: Buffer, contentType: string) => boolean; withRequestMultipartBody: (
contentType: string,
filename: string,
mimePartName: string,
) => boolean; withResponseHeader: (
name: string,
index: number,
value: string,
) => boolean; withResponseBody: (body: string, contentType: string) => boolean; withResponseBinaryBody: (body: Buffer, contentType: string) => boolean; withResponseMultipartBody: (
contentType: string,
filename: string,
mimePartName: string,
) => boolean; }