Skip to content

Commit

Permalink
Use success of first concurrently command to set exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Sep 13, 2018
1 parent e36aa95 commit 5fed872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:format": "prettier-check '{source,test}/**/*.js'",
"test:node": "npm run build && mocha -r test/specs/index.js test/specs/**/*.spec.js",
"test:node:watch": "nodemon --exec 'npm run test:node' --ignore 'dist/'",
"test:web": "npm run test:web:pack && concurrently --kill-others 'npm run test:web:server' 'npm run test:web:karma'",
"test:web": "npm run test:web:pack && concurrently --success 'first' --kill-others 'npm run test:web:server' 'npm run test:web:karma'",
"test:web:karma": "sleep 2 && karma start test/web/karma.conf.js",
"test:web:pack": "webpack --mode development --config test/web/webpack.config.js",
"test:web:server": "node test/web/server.js"
Expand Down
4 changes: 4 additions & 0 deletions test/web/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ process.on("SIGTERM", function() {
server.stop();
process.exit(0);
});
process.on("SIGINT", function() {
server.stop();
process.exit(0);
});

0 comments on commit 5fed872

Please sign in to comment.