From ca0b8fdd8cb8027607e30f972d0347218c8077be Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 23 Jul 2019 14:19:07 -0700 Subject: [PATCH] Exit with correct exit code in test-unit --- bin/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/test.js b/bin/test.js index 89f0d61e..775ec004 100644 --- a/bin/test.js +++ b/bin/test.js @@ -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); \ No newline at end of file