I’m a bit confused with the PactJS documentation. I understand starting up the service locally, but how much dependencies am I suppose to stub out?
Let’s say my service has 5 external services that are dependencies, do I stub out all 5?
Versus just running the service and stubbing out the specific route that’s being called by the contract.
Any suggestions would be helpful, thanks.
m
Matt (pactflow.io / pact-js / pact-go)
01/27/2024, 9:19 PM
You just need to stub out what's required for the test to pass
Matt (pactflow.io / pact-js / pact-go)
01/27/2024, 9:20 PM
In a consumer test that's usually a lot less because this should only testa single outbound call
Matt (pactflow.io / pact-js / pact-go)
01/27/2024, 9:20 PM
The provider side usually all external dependencies