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
I built a tool directory that doesn't pretend every founder has the same needs User Avatar 57 comments AI helped me ship faster. Then I forgot what my product actually does. User Avatar 36 comments Drop your landing page URL. I'll use Ferguson to tell you why visitors might be leaving User Avatar 32 comments Most early-stage SaaS companies miss churn signals — here’s how to catch them early User Avatar 26 comments How I Run a 1.7M Product Search Engine at 66ms on a $0 Hosting Budget User Avatar 18 comments I thought picking a voice for my app would take a day. It rebuilt everything. User Avatar 18 comments