Overview
Recipes and pre-built integrations to test common scenarios in Pact
| Recipe/Integration | Description | 
|---|---|
| Optional Fields | How to test payloads with optional fields | 
| GraphQL | Strategies for testing GraphQL endpoints (example with Apollo) | 
| API Gateway | Strategies for dealing with API Gateways, such as AWS API Gateway, Kong etc. | 
| AWS Signed Requests | How to test services AWS services that use signed requests | 
| Lambda/FaaS (Asynchronous) | How to write contract tests for asynchronous lambda functions / FaaS | 
| Lambda (HTTP) | How to write contract tests for HTTP based lambdas with AWS SAM | 
| ELT processes / file transfers | How to use Message Pact to test JSON file transfers to S3, Dynamo | 
| Cypress | Best practices for integrating Pact with Cypress, and converting your cypress cy.route() / cy.intercept() calls into pact files | 
| MSW | Library for integrating MSW with Pact | 
| NestJS | Library for integrating Pact with NestJS | 
| Kafka | How to test Kafka messages with Pact | 
| Jest | A Pact adaptor for to allow you to easily run tests with Jest | 
| Mocha | A Pact adaptor for to allow you to easily run tests with Mocha | 
| MUnit (Mule4) with Pact | How to use Pact for testing MuleSoft (Mule 4) APIs with MUnit | 
| Cypress | How to safely combine the use of Cypress and Pact tests | 
| AWS Lambda (HTTP) | How to test a lambda function behind an HTTP API Gateway | 
| AWS Lambda (Asynchronous) | How to test a lambda function that communicates asynchronously | 
| gRPC / Protobufs | Example implementation of gRPC and Protobufs with Pact. See also https://pact.canny.io/feature-requests/p/support-grpc to track the official support. | 
| Pact Nirvana reference implementation (Portugese) | Implementation of the Pact nirvana CI/CD setup |