Consumer Driven Contract Testing with Pact - Backend
Consumer Driven Contract Testing with Pact - Backend

In this video I’ll show an example of Consumer-Driven Contract Testing from a provider perspective.

In my practical case the provider will be a backend application based on Node.js and MongoDB.

But generally the stack of the provider is not very important, because the verification process focuses on the REST requests and responses.

I'll use Pact.js to run tests and verify the Pact contract.

We also will consider some questions regarding preparing pre-defined states of the provider and authentication for testing purposes.