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

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

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

Interfaces

A Message is an asynchronous Interaction, sent via a Provider

A Message Descriptor is a set of additional context for a given message

Metadata is a map containing message context, such as content-type, correlation IDs etc.

Defines a state a provider must be in.

Type Aliases

A Message Consumer is a function that will receive a message from a given Message Provider. It is given the full Message context during verification.

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.