/pact-node-example

Example Consumer-Driven Contract tests in node.js

Primary LanguageJavaScript

#Better Testing of Microservices Using Consumer-Driven Contracts in Node.js

Accompanying blog post here

Installation

Clone repository and run

npm install

Usage

Run consumer-side tests

mocha app/client/spec/PostServiceClient.spec.js

Run provider-side tests

node app/service/spec/PostService.spec.js