build: update mocha for retries and audit fix (#37117)
This commit is contained in:
parent
d069b8fc66
commit
6e0d63c356
4 changed files with 330 additions and 90 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue