A basic setup for angular unit tests using karma with jasmine and phantomjs
Node Version Manager (NVM). This tool allows you easily install and manage multiple version of Node.js on the same system. To install or update nvm, you can use the install script using cURL:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
NVM not being compatible with Windows. Download the installer from Node.js website here and run it.
Navigate at the root of the repository and run:
nvm install
The command will install the good version of node thanks to the .nvmrc file.
Nothing to do. Just ensure that the version of you node.js installation matches the one from the .nvmrc file of this repository. To check your node version:
node -v
Under the root folder of the repository, run:
npm install
If everythig went good so far, congrats, you're done! Just run the following command to see if the tests are properly running:
npm run karma