Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pact/src/pact-js/dsl/message.ts>MessageProvider

Pact πŸ”— Contract Testing for Deno πŸ¦•, Powered by Rust πŸ¦€
Latest
type alias MessageProvider
import { type MessageProvider } from "https://deno.land/x/pact@0.1.0/src/pact-js/dsl/message.ts";

A Message Provider is a function that will be invoked by the framework in order to produce a message for a consumer. The response must match what the given consumer has specified in the pact file. It is given a Message Descriptor object when being invoked which can be used for additional context.