From ef3582ea97c5fa85bf2ba4d7eedfa3825b59f00d Mon Sep 17 00:00:00 2001 From: James Addison Date: Sun, 11 Oct 2020 14:34:19 +0100 Subject: [PATCH] Typing: update exit promise resolution handler TODO: Determine how to retrieve failure count --- src/cli/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 3da77d1..00ab00f 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -43,8 +43,8 @@ async function cli() { } return mochaWebpack.run() }) - .then((failures: number) => { - exit(cliOptions.mocha.cli.exit, failures) + .then(() => { + exit(cliOptions.mocha.cli.exit, 0) }) .catch((e: Error) => { if (e) console.error(e.stack) // eslint-disable-line