3
0 Comments

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.

Trending on Indie Hackers
I co-founded Tally — a new type of form builder 1 year ago and bootstrapped it to $30k ARR with a team of 2. AMA! 31 comments How we got our first paying user within a week of adding payments 7 comments We Built AppSumo’s Partner Experience Team from Scratch (Here’s How It Happened) 6 comments How I sold my no-code GPT-3 bubble app: virtual ghost writer 6 comments I’m growing a newsletter on ⚡️ Hotwire dev! 5 comments What tools/platforms do you use to build your personal brand? 1 comment