Our readingWhat is a korrent?
Using nested mocks to mimic third-party APIs can make tests brittle, unidiomatic, and difficult to debug.
Drawn from what Hynek Schlawack said
Our readingWhat is a korrent?
Drawn from what Hynek Schlawack said
This is a business logic test and the purpose of the test is drowning in boilerplate necessary to mimic the API of an HTTP client that can change at any time. That makes the test brittle and unidiomatic.
Where this was said
↗“Don’t Mock What You Don’t Own” in 5 Minuteshynek.me
All 3 korrents from this piecethis one is 2nd
Added to korrents 24 Oct 2026 · How quotes work · Something wrong? Tell us
Do you hold this korrent?Do you also believe this?
I hold this tooNot worked out yet — this claim is newer than the last pass. Every hour, each claim that is new or has changed is compared with every other one in the archive; the last pass () came before this claim was recorded. The next is due , and this claim will be in it.