Skip to content

Mocking a third-party library

A test mocks a payment provider's SDK client directly, asserting on the exact calls made to it.

What is the risk?