How to create a mock for Express.js Response object and run tests with Mocha

  • last month
The Express.js response object is a part of the HTTP response that an Express application sends when it receives an HTTP request. This object is used to send the response back to the client.

In my video I'm showing how I'm creating a mock for the Express.js response object. To create the mock I'm using even the Sinon library.

Recommended