When I started building my first full-stack project, I didn’t follow a Test-Driven Development (TDD) workflow. Like many beginners, I built my backend routes first and told myself I would “write the tests later”. Later arrived…and brought confusion with it. When I finally started writing my tests with Jest and Supertest, I made a big beginner mistake: I rewrote my entire route logic inside the test files. Every test suite became almost as long as my route file. My tests were