fix: add retry 2 for failing e2e tests

This commit is contained in:
Joe Previte
2021-04-14 12:01:17 -07:00
parent 92b7c1e9a8
commit c9fa931a0b
3 changed files with 37 additions and 31 deletions

View File

@ -51,10 +51,7 @@ globalSetup(async () => {
const config: Config = {
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
timeout: 30000, // Each test is given 30 seconds.
}
if (process.env.CI) {
config.retries = 2 // Retry failing tests 2 times
retries: 2, // Retry failing tests 2 times
}
setConfig(config)