Hobbes is a contract testing library for NodeJS projects. This project is still in development. Expect api changes.
This is based heavily on the Pact library. The difference is that this is meant only for NodeJS and is much more lightweight and flexible.
npm install --save-dev hobbes
Write a consumer test.
Write a provider test:
Run the consumer test followed by the provider test.