TDD with Cypress
· 4 min read
Test-driven development (TDD) is the process of writing an executable specification for your code. You do this by writing a list of test cases, then going through each and writing the test before writing code to pass that test. After you make each test pass, you should refactor in order to keep your code clean and well integrated. Missing the refactor step can result in fragmented and messy code.