Matt (pactflow.io / pact-js / pact-go)
Arnon Ram
08/09/2022, 8:49 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Arnon Ram
08/09/2022, 9:09 AMTimothy Jones
08/09/2022, 10:46 AMfromProviderState
do any matching? It probably should.Timothy Jones
08/09/2022, 10:46 AMArnon Ram
08/09/2022, 10:48 AMstateHandle
for the create test, i first delete said entityMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
fromProviderState
can definitely add properties to any place a matcher can be used. See https://github.com/pact-foundation/pact-js/blob/6a38be8610d41fb2e786bbad4b7edf1a8c[…]v3/provider-state-injected/consumer/transaction-service.test.js for an example in a bodyMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt, doesI think it does as it is a Matcher and a generatordo any matching? It probably should.fromProviderState
Matt (pactflow.io / pact-js / pact-go)
1) Verifying a pact between TransactionService and AccountService Given Account Test001 exists - a request to get the account details
1.1) has a matching body
$.id -> Expected '27' to be an integer value
Arnon Ram
08/09/2022, 11:31 AMfromProviderState
inside my body/payload object… interesting…
that way i can make sure to change just what i need and still use the payload from the pactMatt (pactflow.io / pact-js / pact-go)