Skip to content

Commit 80da56e

Browse files
committed
Hack! After failed test, node throws error which is pretty verbose in
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:
1 parent eed291d commit 80da56e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"compile": "babel exercises --out-dir src",
88
"setup": "npm install && ncp koans/ exercises/",
99
"start": "npm run compile && nodemon server.js",
10-
"test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js",
10+
"test": "npm run compile && mocha -b --compilers js:babel/register --require test/helpers.js test/**/*.js || echo",
1111
"watch": "onchange exercises/*.jsx -- npm run test"
1212
},
1313
"repository": {

0 commit comments

Comments
 (0)