A simple Nodejs + Jest project configuring contract tests with PactJS
If you are running your pact broker locally following these instructions then you can run the provider and the publish the way it is, otherwise you will need to modify the pactUrls to the local path and if you are using docker as your pact broker than you need to update the publish script accordingly.
Just run the associated GitHub workflow with this repo , it runs the following sequentially
- npm install
- npm run test:consumer
- npm run test:provider
- npm run publish:contract