Example of Contract Based Tests using Pact on an Order API.
Was exploring pact, created this for tweaking
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
node
To get pact-order-test, follow these steps:
git clone https://github.com/2kabhishek/pact-order-test
cd pact-order-test
npm install
node index-consumer.js
node index-provider.js
Generated pact files are stored here
pact-order-test was built using nvim
- Learning in progress
- Add more specs
Hit the ⭐ button if you found this useful.