Skip to content

Commit ddafa65

Browse files
committed
add mocks to fix tests
1 parent 9e63a78 commit ddafa65

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

jest/setup.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,14 @@ jest.mock('../src/components/Icon/ExpensifyIconLoader.ts', () => ({
255255
};
256256
return Promise.resolve({default: mockIcon});
257257
}),
258+
loadExpensifyIconsChunk: jest.fn(() => Promise.resolve({})),
259+
getExpensifyIconsChunk: jest.fn(() => ({})),
260+
}));
261+
262+
jest.mock('../src/components/Icon/IllustrationLoader.ts', () => ({
263+
loadIllustration: jest.fn(() => Promise.resolve({default: {src: 'mock-illustration', height: 20, width: 20}})),
264+
loadIllustrationsChunk: jest.fn(() => Promise.resolve({})),
265+
getIllustrationsChunk: jest.fn(() => ({})),
258266
}));
259267

260268
jest.mock(

0 commit comments

Comments
 (0)