Sushant Soni
08/19/2022, 2:05 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
08/19/2022, 3:12 PMA user John Doe with bank account exists -> when { userRepo.get('John Doe') } willReturn johnUserData
Sushant Soni
08/22/2022, 3:12 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
For example - for unit tests the mocking is easy as it is being done in isolation.exactly - this is why it’s preferable!
Matt (pactflow.io / pact-js / pact-go)
But with a shared environment (staging), other users would be affected if we mock our responses to particular http requests.exactly - it’s one of the reasons it is not preferable to do it this way!
Sushant Soni
08/23/2022, 2:57 PM