Guillermo Rauch tweeted this a while back. Let’s take a quick dive into what it means.
NOTE: This is a cross-post from my newsletter. I publish each email two weeks after it’s sent. Subscribe to get more content like this earlier right in your inbox! 💌
Write tests. Not too many. Mostly integration.
This is deep, albeit short, so let’s dive in:
Yes, for most projects you should write automated tests. You should if you value your time anyway. Much better to catch a bug locally from the tests than getting a call at 2:00 in the morning and fix it then. Often I find myself saving time when I put time in to write tests.
... read the whole story at blog.kentcdodds.com.