From c73adfac7c4702807c68e88aee0b4a9635c7a3e7 Mon Sep 17 00:00:00 2001 From: Abraham Williams <4braham@gmail.com> Date: Mon, 2 Sep 2024 11:48:08 +0000 Subject: [PATCH] Retry firestore tests --- firestore.rules.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firestore.rules.test.ts b/firestore.rules.test.ts index e19fad87fd..f963adc749 100644 --- a/firestore.rules.test.ts +++ b/firestore.rules.test.ts @@ -1,5 +1,5 @@ import { RulesTestContext } from '@firebase/rules-unit-testing'; -import { afterEach, beforeEach, describe, it } from '@jest/globals'; +import { afterEach, beforeEach, describe, it, jest } from '@jest/globals'; import { addDoc, collection, @@ -14,6 +14,8 @@ import { import { setupApp, teardownApp } from './__tests__/firestore.setup'; import { expect } from './__tests__/helpers'; +jest.retryTimes(3, { logErrorsBeforeRetry: true }); + describe('firestore', () => { let testEnv: RulesTestContext;