Only retry Jest tests in CI mode (#12111)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
35e99d69d3
commit
896d890198
1 changed files with 5 additions and 3 deletions
|
@ -38,9 +38,11 @@ beforeEach(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Retry to work around our flaky app & tests
|
// Retry to work around our flaky app & tests
|
||||||
jest.retryTimes(2, {
|
if (process.env.CI) {
|
||||||
logErrorsBeforeRetry: true,
|
jest.retryTimes(2, {
|
||||||
});
|
logErrorsBeforeRetry: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Very carefully enable the mocks for everything else in
|
// Very carefully enable the mocks for everything else in
|
||||||
// a specific order. We use this order to ensure we properly
|
// a specific order. We use this order to ensure we properly
|
||||||
|
|
Loading…
Reference in a new issue