pact-foundation / pact-standalone-npm

Pact Standalone wrapper for NPM projects
2 stars 1 forks source link

⚠️ This repository is now archived ⚠️


The functionality implemented here has been provided by https://github.com/pact-foundation/pact-node instead

Pact Standalone Provider NPM

Build Status

Installation wrapper for pact pact-standalone executable.

On install, this package selects and installs the correct pact-mock-service and pact-provider-verifier executable for your environment. The platform-specific binaries pact-mock-service and pact-provider-verifier can be found inside the node_modules/.bin directory.

Usage

$ npm i @pact-foundation/pact-standalone
$ node_modules/.bin/pact-mock-service --port 1234
$ node_modules/.bin/pact-provider-verifier <args>

Developing

NOTE: If you're on OSX, you'll need Bash 4 installed for the scripts to work.