Tiny Candy Hammers

Quickstart Tutorial on Testing in Node.js

I recently started using Node.js for a project and decided to write tests to speed up my development. After looking at a few of the testing modules I decided on Mocha and SuperTest. SuperTest makes it very easy to test HTTP endpoints and Mocha makes writing tests in general very easy. This tutorial will demonstrate the basics of testing a web app using these modules.