Exit with correct exit code in test-unit
This commit is contained in:
+3
-1
@@ -21,7 +21,7 @@ if (process.argv.length > 2) {
|
|||||||
testFiles = process.argv.slice(2);
|
testFiles = process.argv.slice(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
cp.spawnSync(
|
const run = cp.spawnSync(
|
||||||
path.resolve(__dirname, '../node_modules/.bin/mocha'),
|
path.resolve(__dirname, '../node_modules/.bin/mocha'),
|
||||||
testFiles,
|
testFiles,
|
||||||
{
|
{
|
||||||
@@ -30,3 +30,5 @@ cp.spawnSync(
|
|||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
process.exit(run.status);
|
||||||
Reference in New Issue
Block a user