Used extensively in JavaScript projects, both frontend and backend, JSON schema validation is a well-known technique to verify that the expected data is in the right shape.
Should we even write unit tests for the logic using JSON schema validation? If so, how?
[Read More]
Unit Testing Expressjs Controller (Part 2)
Detailed Example Of Express Mongoose Update API
This is part 2 on the topic of Expressjs controller unit testing. Previously, I added unit tests for 5 basic CRUD APIs for vehicle. In this post I will show one more example, where controller logic gets a little longer.
[Read More]Unit Testing Expressjs Controller (Part 1)
Stepwise Test Driven Development of Express Mongoose CRUD APIs
So far, I have not found a real workable example of unit testing Express controller/route for API. Most I saw either label integration test as unit test or offer little meaningful in right direction.
[Read More]
When you purchase through links on techighness.com, I may earn an affiliate commission.