build: only retry tests on CI (#37167)

This commit is contained in:
Samuel Attard authored and GitHub committed 2023-02-07 22:44:53 -08:00
1 parent 9a0a0a7a46
commit 00a542358d
1 file changed
+3 -1
+3 -1
View File
@@ -50,9 +50,11 @@ app.whenReady().then(async () => {
const Mocha = require('mocha');
const mochaOptions = {
retries: 3,
forbidOnly: process.env.CI
};
if (process.env.CI) {
mochaOptions.retries = 3;
}
if (process.env.MOCHA_REPORTER) {
mochaOptions.reporter = process.env.MOCHA_REPORTER;
}