Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

README.md

Outline

Angular Pact example

This example project shows how to setup an Angular application to use Pact in order to create Pact files from a consumer test and validate the a consumer against the Pact.

Relevant Blog Post

Creating a Consumer-Driven Contract with Angular and Pact

Key Files

How to Run

Run npm install to load the needed javascript libraries and then npm run test to run the tests. After the tests have successfully run the created pact file will be created in the folder pacts.

Then, you can call npm run publish-pacts to publish the pact files to a Pact Broker. You must set the following npm configs for the publish-pacts script to work:

npm config set angular-pact:brokerUrl <URL>
npm config set angular-pact:brokerUsername <USER>
npm config set angular-pact:brokerPassword <PASS>

Morty Proxy This is a proxified and sanitized view of the page, visit original site.