From 5297d8dde332bf076f2c4177f28658ae660b5555 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 5 Jan 2023 15:47:26 -0600 Subject: [PATCH] Remove uuid mock from Jest --- .../components/ui/form-group/__tests__/form-group.test.tsx | 2 -- app/soapbox/jest/test-setup.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/app/soapbox/components/ui/form-group/__tests__/form-group.test.tsx b/app/soapbox/components/ui/form-group/__tests__/form-group.test.tsx index 676631a3b..a76200092 100644 --- a/app/soapbox/components/ui/form-group/__tests__/form-group.test.tsx +++ b/app/soapbox/components/ui/form-group/__tests__/form-group.test.tsx @@ -3,8 +3,6 @@ import React from 'react'; import { render, screen } from '../../../../jest/test-helpers'; import FormGroup from '../form-group'; -jest.mock('uuid', () => jest.requireActual('uuid')); - describe('', () => { it('connects the label and input', () => { render( diff --git a/app/soapbox/jest/test-setup.ts b/app/soapbox/jest/test-setup.ts index 02b746f18..dc27e9a89 100644 --- a/app/soapbox/jest/test-setup.ts +++ b/app/soapbox/jest/test-setup.ts @@ -15,9 +15,6 @@ jest.mock('soapbox/queries/client'); // https://dev.to/andyhaskell/testing-your-indexeddb-code-with-jest-2o17 require('fake-indexeddb/auto'); -// Mock external dependencies -jest.mock('uuid', () => ({ v4: jest.fn(() => '1') })); - // Clear toasts after each test. afterEach(() => { toast.remove();