test-setup: mock uuid as a string

This commit is contained in:
Alex Gleason 2022-04-21 12:24:54 -05:00
parent 6184ab780a
commit b6c7e3717b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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);