Exit with correct exit code in test-unit

This commit is contained in:
Daniel Imms
2019-07-23 14:19:07 -07:00
parent 7db22c2408
commit ca0b8fdd8c
+3 -1
View File
@@ -21,7 +21,7 @@ if (process.argv.length > 2) {
testFiles = process.argv.slice(2);
}
cp.spawnSync(
const run = cp.spawnSync(
path.resolve(__dirname, '../node_modules/.bin/mocha'),
testFiles,
{
@@ -30,3 +30,5 @@ cp.spawnSync(
stdio: 'inherit'
}
);
process.exit(run.status);