Make mocha use test/mocha.opts to DRY up options used by npm test and test/runall.sh and support coffee. Add coffee-script as devDependency to package.json

This commit is contained in:
Nicholas Dudfield
2013-10-13 15:38:04 +07:00
parent a25ba91876
commit 9dfbffa4b8
3 changed files with 4 additions and 8 deletions

1
test/mocha.opts Normal file
View File

@@ -0,0 +1 @@
--reporter spec --compilers coffee:coffee-script --ui tdd --timeout 10000 --slow 600

View File

@@ -1,4 +1,4 @@
#!/bin/bash
mocha --ui tdd --reporter spec --timeout 10000 test/*-test.js
mocha test/*-test.{js,coffee}