Node JS Unit Test - Hello World This is a simple example of performing unit tests with Node.js There are two files: server.js: A very simple node JS server spec.js: Simple unit test How to Test Step 1. Move to the source code directory $ cd ose-dev3-helloworld-nodejs Step 2. Add the node dependencies $ npm install Step 3. Run the unit tests. This will execute unit test code in spec.js $ npm test