I’m a bit confused with the PactJS documentation. ...
# pact-js
g
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
You just need to stub out what's required for the test to pass
In a consumer test that's usually a lot less because this should only testa single outbound call
The provider side usually all external dependencies
g
ah I see. I am referring to the
provider
side
👍 1