From b6c7e3717b92801331949c25602d89cf7fad2ec4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 21 Apr 2022 12:24:54 -0500 Subject: [PATCH] test-setup: mock uuid as a string --- app/soapbox/jest/test-setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/jest/test-setup.ts b/app/soapbox/jest/test-setup.ts index 82beb982a4..f091e3676c 100644 --- a/app/soapbox/jest/test-setup.ts +++ b/app/soapbox/jest/test-setup.ts @@ -7,7 +7,7 @@ jest.mock('soapbox/api'); afterEach(() => clearApiMocks()); // Mock external dependencies -jest.mock('uuid', () => ({ v4: jest.fn(() => 1) })); +jest.mock('uuid', () => ({ v4: jest.fn(() => '1') })); const intersectionObserverMock = () => ({ observe: () => null, disconnect: () => null }); window.IntersectionObserver = jest.fn().mockImplementation(intersectionObserverMock);