chore: upgrade to Mocha v8 (#5997)

* chore: upgrade to Mocha v8

Mocha v8 has some nice improvements and also unlocks the potential
to have parallel test runs which may speed up CI.
This commit is contained in:
Jack Franklin
2020-06-18 16:26:30 +01:00
committed by GitHub
parent 9522f80116
commit 759b28080a
4 changed files with 55 additions and 38 deletions

View File

@@ -18,9 +18,10 @@ const base = require('./base');
module.exports = {
...base,
file: ['./test/mocha-utils.js'],
require: ['./test/mocha-utils.js'],
spec: 'test/*.spec.js',
parallel: process.env.CI && !process.env.COVERAGE,
// retry twice more, so we run each test up to 3 times if needed.
retries: 2,
retries: process.env.CI ? 2 : 0,
timeout: 25 * 1000,
};