Skip to content

Commit

Permalink
Typing: update exit promise resolution handler
Browse files Browse the repository at this point in the history
TODO: Determine how to retrieve failure count
  • Loading branch information
jayaddison committed Oct 11, 2020
1 parent c6d0528 commit ef3582e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef3582e

Please sign in to comment.