Permalink
Browse files

Fix configuration:

 * We don't really need scripts for running both mocha and nodemod. It's useful
   for development purposes, but it is a bit messy in a config.
 * I noticed that leaving configuration in `mocha.opts` made the whole testing
   framework not working both on OS X and Windows. I moved the config back to
   the command line (and bail works from command line)

Basically removing bash-specific stuff solved the issue.
  • Loading branch information...
1 parent a0fe71f commit eed291d26068bce196d04f7966609e54a052a4da @voter101 voter101 committed Jan 2, 2016
Showing with 2 additions and 7 deletions.
  1. +2 −4 package.json
  2. +0 −3 test/mocha.opts
View
@@ -6,10 +6,8 @@
"scripts": {
"compile": "babel exercises --out-dir src",
"setup": "npm install && ncp koans/ exercises/",
- "nodemon": "nodemon",
- "start": "npm run compile && npm run nodemon server.js",
- "mocha": "mocha",
- "test": "npm run compile && npm run mocha",
+ "start": "npm run compile && nodemon server.js",
+ "test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js",
"watch": "onchange exercises/*.jsx -- npm run test"
},
"repository": {
View
@@ -1,3 +0,0 @@
---compilers js:babel/register
---require test/helpers.js
---bail

0 comments on commit eed291d

Please sign in to comment.