Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fixed exit status. Closes #187

Tj Holowaychuke9066de1b316
diff --git a/bin/mocha b/bin/mocha
index 5137fdd0..8782358d 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -19,4 +19,5 @@ process.argv.forEach(function (arg) {
}
});
-spawn(process.argv[0], args, { customFds: [0,1,2] });
+var proc = spawn(process.argv[0], args, { customFds: [0,1,2] });
+proc.on('exit', process.exit);
\ No newline at end of file