Matt (pactflow.io / pact-js / pact-go)
Ancy Aziz
03/21/2022, 12:33 AMMatt (pactflow.io / pact-js / pact-go)
200
and 404
scenarios. You would then use a Provider State in the consumer test to control the desired outcome from the provider.
Pact is not designed to be tested against a live system for this reason - it’s hard to control the state of the provider. You really should be running the provider in a controlled (unit test-like) environment, where you can manipulate external dependencies as neededAncy Aziz
03/21/2022, 3:16 AM