Skip to content

Commit

Permalink
Merge pull request #3144 from gdg-x/retry
Browse files Browse the repository at this point in the history
Retry firestore tests
  • Loading branch information
abraham authored Sep 2, 2024
2 parents d197b72 + c73adfa commit 5b69186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firestore.rules.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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;

Expand Down

0 comments on commit 5b69186

Please sign in to comment.