Software Development

Contract Testing

Implement consumer-driven contract testing with Pact-JS (v16). Covers consumer test writing, broker-driven provider verification, Pact Broker setup, can-i-deploy as a deployment gate, webhook-triggered verification, pending pacts, and schema-first vs consumer-first approaches (OpenAPI/Ajv, Schemathesis). Use when: "contract test," "Pact," "consumer-driven," "API contract," "provider verification," "can-i-deploy." Not for: stubbing or mocking a dependency to isolate a test — use service-virtualization; general REST/GraphQL endpoint assertions against your own API — use api-testing. Related: api-testing, service-virtualization, ci-cd-integration, test-environments.

Publisher / source
petrkindlmann/qa-skills (found on skills.sh)
Upstream record
petrkindlmann/qa-skills
Version
Version 2
Published
Publication review
Approved for publication
Content fingerprint
fc69dd9b0e7228f20dc65afdf7e5107ba6b10d02e1417c53c91ebbf9e997b418