Skip to content

Commit eed291d

Browse files
committed
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.
1 parent a0fe71f commit eed291d

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
"scripts": {
77
"compile": "babel exercises --out-dir src",
88
"setup": "npm install && ncp koans/ exercises/",
9-
"nodemon": "nodemon",
10-
"start": "npm run compile && npm run nodemon server.js",
11-
"mocha": "mocha",
12-
"test": "npm run compile && npm run mocha",
9+
"start": "npm run compile && nodemon server.js",
10+
"test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js",
1311
"watch": "onchange exercises/*.jsx -- npm run test"
1412
},
1513
"repository": {

test/mocha.opts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)