Skip to main content

Overview

Recipes and pre-built integrations to test common scenarios in Pact

Recipe/IntegrationDescription
GraphQLStrategies for testing GraphQL endpoints (example with Apollo)
API GatewayStrategies for dealing with API Gateways, such as AWS API Gateway, Kong etc.
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
CypressBest practices for integrating Pact with Cypress, and converting your cypress cy.route() / cy.intercept() calls into pact files
MSWLibrary for integrating MSW with Pact
NestJSLibrary for integrating Pact with NestJS
KafkaHow to test Kafka messages with Pact
JestA Pact adaptor for to allow you to easily run tests with Jest
MochaA Pact adaptor for to allow you to easily run tests with Mocha