Consumer-driven Contracts

Contains the consumer-driven contract tests against the JSONPlaceholder API.

Usage

Install dependencies:

npm i

Run tests:

npm test

Development

Contracts

Create the contracts in test/helper/contracts which exports an object with the request and schema keys.

Requests

The value for the request can be provided by faker.

Responses

The validation of the response can be done with Joi.