Skip to content

TagSpaces is an offline, open source, document manager with tagging support

add jest.retryTimes Runs failed tests n-times until they pass or until the max number of retries is exhausted

Stanimir062110dd46d9
diff --git a/tests/setup-after-env.js b/tests/setup-after-env.js
index 12f9bc600..842921909 100644
--- a/tests/setup-after-env.js
+++ b/tests/setup-after-env.js
@@ -49,6 +49,8 @@ afterAll(async () => {
await testDataRefresh();
});*/
+jest.retryTimes(3); //, { logErrorsBeforeRetry: true });
+
beforeEach(async () => {
if (global.isPlaywright) {
/*if (global.context) {