Skip to content

armgit / mocha

Public Imported from GitHub
0

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

windows - act on SIGINT

Craig Taub01c712d020b9
diff --git a/bin/_mocha b/bin/_mocha
index dcaca6af..7ab33e70 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -570,7 +570,9 @@ if (program.watch) {
output: process.stdout
});
rl.on('SIGINT', function() {
- process.emit('SIGINT');
+ showCursor();
+ console.log('\n');
+ process.exit(130);
});
}
process.on('SIGINT', () => {