alexschwartz / pact-js-example-standalone

This is an example of using pact-js with node. It is based on the RisingStack/pact-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pact-example

This is an example application for demonstrating the use of pact and consumer driven contract testing.

The codebase was created for the blogpost TBA.

Usage

Setup

$ git clone git@github.com:RisingStack/pact-example.git
$ npm i

Run consumer side tests and create pacts

$ npm run test-consumer

Start Pact Broker

$ npm run pact-broker

Delete example pact

$ npm run delete-example-pact

Publish pacts

$ npm run publish-pacts

Verify pacts against the provider

$ npm run test-provider

Compatibility

The codebase was written using node v8.9.0

About

This is an example of using pact-js with node. It is based on the RisingStack/pact-example


Languages

Language:JavaScript 93.6%Language:Shell 4.7%Language:Dockerfile 1.7%