Mantra: Live in the Code
Every time your eyes leave your code, you experience what’s known as a context switch. Returning to your code, it’s common to feel disoriented, even lost. A TDD workflow that requires you to actively switch between your code and your tests will sap your ability to focus. Hence this chapter’s mantra: “live in the code.” Strive to make running your tests as automatic as breathing.
This chapter introduced you to the VS Code editor, a powerful and endlessly customizable home for your TDD workflow. You learned to use ESLint to preemptively avoid common coding mistakes that tests might miss, and to use Prettier to keep your code tidy without losing your momentum. Finally, you tried out Wallaby, which takes TDD to the next ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access