build: update mocha for retries and audit fix (#37117)

This commit is contained in:
Samuel Attard 2023-02-02 17:40:30 -08:00 committed by GitHub
parent d069b8fc66
commit 6e0d63c356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 330 additions and 90 deletions

View file

@ -49,7 +49,10 @@ app.whenReady().then(async () => {
.argv;
const Mocha = require('mocha');
const mochaOptions = {};
const mochaOptions = {
retries: 3,
forbidOnly: process.env.CI
};
if (process.env.MOCHA_REPORTER) {
mochaOptions.reporter = process.env.MOCHA_REPORTER;
}