All Projects → RisingStack → pact-example

RisingStack / pact-example

Licence: other
This is an example of using pact-js with node.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

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 [email protected]: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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].