Summary
This chapter has taken a detailed look at the steps involved in the Red-Green-Refactor workflow. You have seen how much thinking is involved in every single step, and how the TDD process provides a scaffold for both solo work and work as a team.
You have also seen how to create a Svelte component using TDD to write a unit test for the Vitest test runner.
The value of this kind of critical thinking is that it will help you map out your intended work from start to finish, removing the fear of going down a wrong path or getting lost. If you take time to practice this workflow, it will soon become second nature.
In the next chapter, we’ll introduce Playwright testing, and you’ll build a page to hold the Birthday
component.