logoalt Hacker News

ahepptoday at 4:21 AM0 repliesview on HN

Mocking is testing how an interface is used, rather than testing an implementation. That's why it requires some kind of library support. Otherwise you'd just on the hook for providing your own simple implementations of your dependencies.