Skip to content

Commit

Permalink
chore: force Mocha to exit on CI (#5862)
Browse files Browse the repository at this point in the history
We have some bug where some test runs will pass but then stall as Mocha
doesn't exit cleanly. This is proving very hard to track down (I've yet
to replicate it or find the test that causes it) and it doesn't happen
consistently.

The `exit` flag forces Mocha to hard exit. This will help with CI
stability. The flag only gets set on CI runs.
  • Loading branch information
jackfranklin committed May 13, 2020
1 parent 9368edb commit 0aba6df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mocha-config/base.js
@@ -1,3 +1,4 @@
module.exports = {
reporter: 'dot',
exit: !!process.env.CI,
};

0 comments on commit 0aba6df

Please sign in to comment.