0.1.0 • Published 3 years ago

studio-poc-contract-testing v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

PACT POC

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

  • 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 dependencies
npm run test:consumer to generate the pacts
npm run publish to upload the pact to the pact broker
npm run test:provider to test provider