MerchantryTidbits

api-tooling / library

Pact JS

Capability: Pact JS

Use it when

  • prevent breaking API changes with consumer-driven contracts
  • verify a provider against the interactions its consumers actually use

What it solves

Not the fit when

  • contract tests do not replace provider business-logic tests

Install

npm install --save-dev @pact-foundation/pact

Invoke

Write consumer expectations against a Pact mock provider, publish the contract, then verify it against the provider before deployment.

Alternatives

No reviewed alternatives recorded yet.