https://github.com/2kabhishek/pact-order-test
Contract Based Tests with Pact 🧪✅
https://github.com/2kabhishek/pact-order-test
api consumer contract-based-testing contracts pact provider testing
Last synced: about 7 hours ago
JSON representation
Contract Based Tests with Pact 🧪✅
- Host: GitHub
- URL: https://github.com/2kabhishek/pact-order-test
- Owner: 2KAbhishek
- License: gpl-3.0
- Created: 2022-10-10T05:31:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-12T20:05:38.000Z (7 months ago)
- Last Synced: 2025-11-12T21:23:06.183Z (7 months ago)
- Topics: api, consumer, contract-based-testing, contracts, pact, provider, testing
- Language: JavaScript
- Size: 291 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What is this
Example of Contract Based Tests using Pact on an Order API.
## Inspiration
Was exploring pact, created this for tweaking
## Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of `node`
## Getting pact-order-test
To get pact-order-test, follow these steps:
```bash
git clone https://github.com/2kabhishek/pact-order-test
cd pact-order-test
npm install
```
## Using pact-order-test
[Consumer Specs](./consumer/consumer.spec.js)
```bash
node index-consumer.js
```
[Provider Specs](./provider/provider.spec.js)
```bash
node index-provider.js
```
Generated pact files are stored [here](./pacts)
## How it was built
pact-order-test was built using `nvim`
## What I learned
- Learning in progress
### To-Do
- [ ] Add more specs
Hit the ⭐ button if you found this useful.
## More Info