Skip to content

Commit

Permalink
Hack! After failed test, node throws error which is pretty verbose in
Browse files Browse the repository at this point in the history
console. To avoid that, we can force npm's script to return status 0.

We want to keep compatibility between Windows and Unix-like shells. As
Windows's cmd.exe doesn't implement such thing as `true` or `false`, I
had to get a bit creative - both shells implements `echo` command which
does what I need.

:+1:
  • Loading branch information
voter101 committed Jan 2, 2016
1 parent eed291d commit 80da56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"compile": "babel exercises --out-dir src",
"setup": "npm install && ncp koans/ exercises/",
"start": "npm run compile && nodemon server.js",
"test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js",
"test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js || echo",
"watch": "onchange exercises/*.jsx -- npm run test"
},
"repository": {
Expand Down

0 comments on commit 80da56e

Please sign in to comment.