How to test API in an Express application using Jest and SuperTest

byGinkSun, 06 Feb 2022

Testing is a very important part of software development. The goal of software testing is to find errors, gaps, or missing requirements in the implemented code compared to the actual requirements. The sooner you start testing, the better.

In this article, I'll show you how to write tests for your Express API with Jest and Supertest.

What's the difference between TDD and BDD?

byGinkSat, 05 Feb 2022

Test-Driven Development (TDD) and Behavior-Driven Development (BDD) are both software development methodologies that aim to improve the quality of code and reduce the number of bugs by using automated tests. While they share some similarities, TDD and BDD have distinct differences that we need to understand clearly before choosing which one to apply in the development flow.


© 2016-2024  GinkCode.com