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

Commit

Permalink
Retry jest tests to avoid flakes slowing down PRs (#12051)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Dec 15, 2023
1 parent f0dd12d commit 9d93a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9d93a3f

Please sign in to comment.