I have used https://github.com/juacompe/tdd_angular as a starting point to demostrate TDD. Recently I learned about Karma (Thanks to Amp!) and decided to create a new bare template for AngularJS project using Karma as a test runner.
sudo apt-get install nvm
Window users, download and install from http://nodejs.org/
npm install nvm
Use nvm ls
to check which version of nvm
you are using. If you don't have v0.10.13
, then install it:
nvm install v0.10.13
In case have v0.10.13
installed but it is not your current version, run nvm use
to switch to that version:
nvm use v0.10.13
npm install -g karma@canary
karma start