An open API service indexing awesome lists of open source software.

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 🧪✅

Awesome Lists containing this project

README

          

pact-order-test


License


People


Stars


Forks


Watches


Last Updated

Contract Based Tests with Pact 🧪✅

## 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

Source | Website