Skip to content

Commit 1719f79

Browse files
committed
Retry E2E tests in CI
1 parent 819c089 commit 1719f79

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const config: Config = {
99
// The root directory that Jest should scan for tests and modules within
1010
rootDir: "spec-lib",
1111
testTimeout: 60000,
12+
setupFiles: ["<rootDir>/spec/setup-jest.js"],
1213
};
1314

1415
export default config;

spec/setup-jest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// In CI, the network creation for the homerunner containers can race (https://github.com/matrix-org/complement/issues/720).
2+
jest.retryTimes(process.env.CI ? 3 : 1);

0 commit comments

Comments
 (0)