Mantra
Understand the mantra of the test-driven development with Jest.
We'll cover the following
Mantra: red, green, repeat
This chapter’s mantra, “Red, green, repeat,” encapsulates test-driven development (TDD) in a nutshell. Whenever you feel stuck, let the mantra guide you. In the long term, the habit of putting tests first helps to form a healthy mindset for problem-solving, one in which failing code evokes curiosity instead of despair.
Get hands-on with 1400+ tech skills courses.