T77

Jasmine and Coffee-Script tests

 Jasmine Coffee-Script TDD

Install jasmine and coffee-script:

npm install jasmine coffee-script --save-dev

Initialize jasmine:

./node_modules/.bin/jasmine init

Instruct jasmine to use coffee-script files. Edit spec/support/jasmine.json spec_files config option:

{
  "spec_files": ["**/*[sS]pec.coffee"]
}

Add test script to package.json:

{
  "scripts": {
    "test": "node --require coffee-script/register ./node_modules/.bin/jasmine"
  }
}