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:
Anik Dhabal Babu
2025-05-02 19:42:36 +00:00
committed by GitHub
parent ef1598faeb
commit 46c513330c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@
"^.+\\.(t|j)s$": "ts-jest"
},
"setupFiles": ["<rootDir>/test/setEnvVars.ts", "jest-date-mock"],
"setupFilesAfterEnv": ["<rootDir>/test/jest.setup-e2e.ts"],
"reporters": ["default", "jest-summarizing-reporter"],
"workerIdleMemoryLimit": "512MB",
"maxWorkers": 8
+1
View File
@@ -0,0 +1 @@
jest.retryTimes(process.env.CI ? 2 : 0); // Global retry for all tests