You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Only retry Jest tests in CI mode (#12111)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
35e99d69d3
commit
896d890198
@ -38,9 +38,11 @@ beforeEach(() => {
|
||||
});
|
||||
|
||||
// Retry to work around our flaky app & tests
|
||||
jest.retryTimes(2, {
|
||||
logErrorsBeforeRetry: true,
|
||||
});
|
||||
if (process.env.CI) {
|
||||
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
|
||||
|
Reference in New Issue
Block a user