chore: force Mocha to exit on CI (#5862)

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.
This commit is contained in:
Jack Franklin 2020-05-13 11:10:07 +01:00 committed by GitHub
parent 9368edbac9
commit 0aba6dfddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
module.exports = {
reporter: 'dot',
exit: !!process.env.CI,
};