Can anyone suggest me good TDD framework for Node.js API Development

Hello Team,
I need to work on Node.js API Development. There will be no framework involved in API Development. Most of API’s are for lamda functions.
So can anyone suggest good TDD framework. I am confused between Jest and Mocha. Anyone can suggest better than this.

Thanks in advance.

Mocha + Chai is the the main testing framework. Jest is the React testing framework.

Thank you so much. I will go with mocha + chai.

Just to clarify though, that Jest is the (de facto standard) React testing framework doesn’t mean you can’t use it to test node applications, or any JS applications for that matter.

1 Like