test: retry times for api v2 e2e test in CI (#21087)
* test: test retry times for api v2 test * Update jest.setup-e2e.ts
This commit is contained in:
1 parent
ef1598faeb
commit
46c513330c
2 files changed
+2
No files matched your search
@@ -11,6 +11,7 @@
|
|||||||
"^.+\\.(t|j)s$": "ts-jest"
|
"^.+\\.(t|j)s$": "ts-jest"
|
||||||
},
|
},
|
||||||
"setupFiles": ["<rootDir>/test/setEnvVars.ts", "jest-date-mock"],
|
"setupFiles": ["<rootDir>/test/setEnvVars.ts", "jest-date-mock"],
|
||||||
|
"setupFilesAfterEnv": ["<rootDir>/test/jest.setup-e2e.ts"],
|
||||||
"reporters": ["default", "jest-summarizing-reporter"],
|
"reporters": ["default", "jest-summarizing-reporter"],
|
||||||
"workerIdleMemoryLimit": "512MB",
|
"workerIdleMemoryLimit": "512MB",
|
||||||
"maxWorkers": 8
|
"maxWorkers": 8
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
jest.retryTimes(process.env.CI ? 2 : 0); // Global retry for all tests
|
||||||
Reference in new issue
Block a user