studio-poc-contract-testing
v0.1.0
Published
### Pre requirements - The provide test expects workflows-manager to be running on `http://localhost:4000/v1`, it can be changed in `provider.pact.spec.js`
Downloads
10
Maintainers
Keywords
Readme
PACT POC
Pre requirements
The provide test expects workflows-manager to be running on
http://localhost:4000/v1
, it can be changed inprovider.pact.spec.js
Pact broker and tiken must be exported as env variables, there is a pact flow created for this POC, to use it export these variables:
export PACT_BROKER_BASE_URL=https://yalo.pactflow.io
export PACT_BROKER_TOKEN=5yWEUZ-HdeaxscveZ0OMFQ
To run it
npm install
to install dependenciesnpm run test:consumer
to generate the pactsnpm run publish
to upload the pact to the pact brokernpm run test:provider
to test provider