From 4e079bb7421b347aec51c87bc1210b6ad7cf83ae Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Wed, 30 Oct 2024 13:32:53 -0400 Subject: [PATCH] Aha, fix: process.exit() instead of process.exitCode --- lib/cli/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/cli.js b/lib/cli/cli.js index 1ccee25f28..8899cb16d7 100755 --- a/lib/cli/cli.js +++ b/lib/cli/cli.js @@ -59,7 +59,7 @@ exports.main = (argv = process.argv.slice(2), mochaArgs) => { debug('caught error sometime before command handler: %O', err); yargs.showHelp(); console.error(`\n${symbols.error} ${ansi.red('ERROR:')} ${msg}`); - process.exitCode = 1; + process.exit(1); }) .help('help', 'Show usage information & exit') .alias('help', 'h') @@ -67,7 +67,7 @@ exports.main = (argv = process.argv.slice(2), mochaArgs) => { .alias('version', 'V') .wrap(process.stdout.columns ? Math.min(process.stdout.columns, 80) : 80) .epilog( - `Mocha Resources + `${ansi.reset("Mocha Resources")} Chat: ${ansi.magenta(discord)} GitHub: ${ansi.blue(repository.url)} Docs: ${ansi.yellow(homepage)}