Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Unit Testing is Overrated (2020). Parent comment
You don’t. You test only the public API. This way, you can refactor the public method to your heart’s content without any tests breaking.
There are no comments on this comment yet.
You don’t. You test only the public API. This way, you can refactor the public method to your heart’s content without any tests breaking.