I'm open to new opportunities! For a full-time role, contract position, or freelance work, reach out at
talha@talhaawan.net or
LinkedIn.
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]