← Back to context

Comment by jiehong

3 months ago

Many comments are about the danger of over mocking, which is right.

But, I’ve also suffered the opposite: having to use a lib that assumes it only runs in production, and always initialises some context no matter what (up to assuming only a specific VM would be used, never ever elsewhere, especially not in local)

In the wild, I’ve rarely (if ever) saw code that was too testable. Too complex for no reason? Yes.