This is an example application for demonstrating the use of pact and consumer driven contract testing.
The codebase was created for the blogpost TBA.
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
The codebase was written using node v8.9.0