Skip to content

A simple Nodejs + jest project configuring contract tests with PactJS

License

Notifications You must be signed in to change notification settings

wenderson-me/tau-pact-contract-tests

Repository files navigation

🚀 Contract test

Requirements ⚙️

Before starting, you will need to have the following tools installed on your machine: Git, Node.js and PACT. Besides this, it is good to have an editor to work with the code, such as VSCode

# Clone this repository
$ git clone <https://github.com/wenderson-me/tau-pact-contract-tests.git>

# Install dependencies
$ npm install

# Run the provider server
$ npm run provider

# Run the consumer server
$ npm run consumer

# Run the consumer (generate contracts) contract tests
$ npm run test:consumer

# Run the provider (verify contracts) contract tests
$ npm run test:provider

Stack

About

A simple Nodejs + jest project configuring contract tests with PactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published