This blog post is a cheat sheet to get started with the initial technical implementation of unit tests for REST endpoints implemented in Node.js and is structured in following sections:
- Short overview
- Installation of Mocha and Supertest
- Unit test implementation perperation on the Node.js server
- Unit test implementation itself
- Execute the unit test
- Summary