Skip to content

WooodHead/pact-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.3%
  • Shell 3.7%