The main tools we will be using to pull this off are Karma and Istanbul. The test we write will be using Jasmine.
If you don’t use Visual Studio, you should still be able to adapt these instructions to your own environment. I’ve found getting Istanbul setup kind of tricky at times. Since everything I’m going to show you here is pure Node.JS, you can ignore the Visual Studio parts.
Let’s get started.