test-setup: mock uuid as a string
This commit is contained in:
parent
6184ab780a
commit
b6c7e3717b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue