Skip to content

Commit b69ac08

Browse files
committed
fix: remove duplicate configureTestRetries declaration
1 parent 3dac8b7 commit b69ac08

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/ipcMain/helpers.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -806,12 +806,3 @@ export async function buildLargeHistory(
806806
await fs.writeFile(chatPath, content, "utf-8");
807807
}
808808

809-
/**
810-
* Configure test retries for flaky tests in CI
811-
* Only works with Jest
812-
*/
813-
export function configureTestRetries(retries = 3): void {
814-
if (process.env.CI && typeof jest !== "undefined" && jest.retryTimes) {
815-
jest.retryTimes(retries, { logErrorsBeforeRetry: true });
816-
}
817-
}

0 commit comments

Comments
 (0)