This should get you going quickly:
- install Node.js (obviously).
-
Next install Jasmine. Open a command prompt and run:
npm install -g jasmine
-
Next, cd to any directory and set up an example ‘project’:
jasmine init
jasmine examples
-
Now run your unit tests:
jasmine
If your jasmine.json file is somewhere else besides spec/support/jasmine.json, simply run:
jasmine JASMINE_CONFIG_PATH=relative/path/to/your/jasmine.json
For more info see:
- https://www.npmjs.com/package/jasmine
- http://jasmine.github.io/2.2/node.html