Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Retry jest tests to avoid flakes slowing down PRs #12051

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/setupTests.ts
Original file line number Diff line number Diff line change
@@ -37,6 +37,11 @@ beforeEach(() => {
});
});

// Retry to work around our flaky app & tests
jest.retryTimes(2, {
logErrorsBeforeRetry: true,
});

// Very carefully enable the mocks for everything else in
// a specific order. We use this order to ensure we properly
// establish an application state that actually works.