nodejs-pact-provider

Pact for Javascript

Usage no npm install needed!

<script type="module">
  import nodejsPactProvider from 'https://cdn.skypack.dev/nodejs-pact-provider';
</script>

README

PactJS

This is a PoC Pact Javascript implementation.

Currently it is a bare-bones implementation that can verify a provider's response.

Install

npm install nodejs-pact-provider --save-dev

Examples

Download the full codebase from GitHub.

To run the example provider verifications:

/pactjs/example/animal_service/$ node test/contracts.pact.js

Links

The official Pact specification

Ruby implementation of Pact

JVM implementation of Pact

.NET implementation of Pact