3
1 Comment

Using TDD to speed up my productivity

It took me a few days, but it was worth it. I wrote all the required unit tests for my backend APIs. To be honest, I should have done it from the start instead of using Postman to test the endpoints. But now it is done.

These last few days completely changed the way I think about writing backend code. Use TDD. You won't regret it. It is not a waste of time.

PS: I am using Japa + Chai, but you can use Jest if you are more familiar with it.

, Founder of Icon for The Companies API
The Companies API
on July 22, 2021
  1. 1

    You have come a long way mate! I love TDD.

    I am curious to know how many customers and what is your current MRR

Trending on Indie Hackers
6 weeks solo, 2 rejections, finally live but nobody told me marketing would be this hard User Avatar 137 comments Building ExpenseSpy solo, no funding — launching June 17 on iOS & Android User Avatar 59 comments I spent more time setting up cold email than actually selling. Here is what fixed it. User Avatar 30 comments I just wanted to taste AI coding tools. A week passed. User Avatar 21 comments I built a PDF API because every team I know has a haunted corner of their codebase they never want to open User Avatar 15 comments Building LinkCover – Day 3: Payment is live. No more building, time to sell. User Avatar 15 comments