test-setup: mock uuid as a string
This commit is contained in:
parent
6184ab780a
commit
b6c7e3717b
|
@ -7,7 +7,7 @@ jest.mock('soapbox/api');
|
||||||
afterEach(() => clearApiMocks());
|
afterEach(() => clearApiMocks());
|
||||||
|
|
||||||
// Mock external dependencies
|
// Mock external dependencies
|
||||||
jest.mock('uuid', () => ({ v4: jest.fn(() => 1) }));
|
jest.mock('uuid', () => ({ v4: jest.fn(() => '1') }));
|
||||||
|
|
||||||
const intersectionObserverMock = () => ({ observe: () => null, disconnect: () => null });
|
const intersectionObserverMock = () => ({ observe: () => null, disconnect: () => null });
|
||||||
window.IntersectionObserver = jest.fn().mockImplementation(intersectionObserverMock);
|
window.IntersectionObserver = jest.fn().mockImplementation(intersectionObserverMock);
|
||||||
|
|
Loading…
Reference in New Issue