Pact module.

Pact
Static Members
create
Verifier
Matchers

PactProvider

src/pact.js
PactProvider
Instance Members
addInteraction(interactionObj)
verify()
finalize()
writePact()
removeInteractions()

Start the Mock Server.

setup(): Promise
Returns
Promise:
Matchers
Static Members
term(opts)
eachLike(content, opts)
somethingLike(value)

ProviderVerifier

src/dsl/verifier.js

Provider Verifier service

ProviderVerifier

Mock Service is the HTTP interface to setup the Pact Mock Service. See https://github.com/bethesque/pact-mock_service and https://gist.github.com/bethesque/9d81f21d6f77650811f4.

MockService
Instance Members
constructor(consumer, provider, port, host, ssl)
addInteraction(interaction)
removeInteractions()
verify()
writePact()

An Interaction is where you define the state of your interaction with a Provider.

Interaction
Instance Members
constructor()
given(providerState)
uponReceiving(description)
withRequest(requestOpts)
willRespondWith(responseOpts)
json()