A few years back, Guillermo Rauch—now the CEO of Vercel—tweeted a pithy assessment of automated testing:
Write tests. Not too many. Mostly integration.
— Guillermo Rauch (@rauchg) December 10, 2016
This inspired Kent C. Dodds to write that:
Integration tests strike a great balance on the trade-offs between confidence