contract-testing

Verify API contracts with consumer-driven Pact.js testing.

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/JaiminVadadoriya/Distributed-Cloud-Storage---Sync-Platform --skill contract-testing-jaiminvadadoriya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-testing
Source: https://github.com/JaiminVadadoriya/Distributed-Cloud-Storage---Sync-Platform/tree/main/.agents/skills/contract-testing
Command: npx skills add https://github.com/JaiminVadadoriya/Distributed-Cloud-Storage---Sync-Platform --skill contract-testing-jaiminvadadoriya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @pact-foundation/pact, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps teams ensure that their API contracts are met, reducing integration issues and improving system reliability.

Core Features & Use Cases

  • Consumer-Driven Contract Testing: Write tests that define what the consumer expects from the provider.
  • Provider Verification: Verify that the provider can satisfy the consumer's contract.
  • Pact Broker Integration: Use the Pact Broker to manage and publish contracts.
  • Deployment Gate: Use 'can-i-deploy' to ensure contracts are met before deployment.
  • Use Case: Before deploying a new version of a service, this Skill can be used to verify that the service meets the expected contract defined by its consumers.

Quick Start

Run the pact verification tests to ensure the provider satisfies the consumer's contract.

Frequently Asked Questions about contract-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify API contracts before deploying a microservice?

Consumer-driven contract testing defines API expectations from the consumer's perspective and verifies the provider meets them. Using Pact.js, consumers write tests specifying expected interactions, which generates contracts published to a Pact Broker for provider verification.

Do I need a Pact Broker to run Pact.js contract tests?

Yes, Pact.js contract testing applies to both microservices and monolithic architectures with independent deployments. It ensures API contracts are met across distributed services or independent modules within a monolith, reducing integration issues.

How do I set up consumer-driven contract testing with Pact.js?

Provider verification checks that an API provider can satisfy the contracts defined by its consumers. It fetches contracts from the Pact Broker and replays the expected interactions against the provider, ensuring compatibility before deployment.

What is the 'can-i-deploy' deployment gate in contract testing?

The 'can-i-deploy' deployment gate is a Pact Broker command used in CI/CD to verify that a service version meets all required API contracts before release. It prevents deploying services that would break existing consumer integrations.