Skip to content

Commit 0e41755

Browse files
committed
chore: retry flaky test
1 parent d4b36be commit 0e41755

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

e2e/__tests__/detectOpenHandles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ function getTextAfterTest(stderr: string) {
1111
return (stderr.split(/Ran all test suites(.*)\n/)[2] || '').trim();
1212
}
1313

14+
beforeAll(() => {
15+
jest.retryTimes(3);
16+
});
17+
1418
it('prints message about flag on slow tests', async () => {
1519
const run = runContinuous('detect-open-handles', ['outside']);
1620
await run.waitUntil(({stderr}) =>

0 commit comments

Comments
 (0)