2017-08-23 00:27:25 +00:00
|
|
|
import initStoryshots from '@storybook/addon-storyshots';
|
|
|
|
|
2021-11-16 15:59:58 +00:00
|
|
|
jest.mock('rn-fetch-blob', () => ({
|
|
|
|
fs: {
|
|
|
|
dirs: {
|
|
|
|
DocumentDir: '/data/com.rocket.chat/documents',
|
|
|
|
DownloadDir: '/data/com.rocket.chat/downloads'
|
|
|
|
},
|
|
|
|
exists: jest.fn(() => null)
|
|
|
|
},
|
|
|
|
fetch: jest.fn(() => null),
|
|
|
|
config: jest.fn(() => null)
|
|
|
|
}));
|
|
|
|
|
|
|
|
jest.mock('react-native-file-viewer', () => ({
|
|
|
|
open: jest.fn(() => null)
|
|
|
|
}));
|
|
|
|
|
2020-11-04 16:53:44 +00:00
|
|
|
jest.mock('../app/lib/database', () => jest.fn(() => null));
|
|
|
|
global.Date.now = jest.fn(() => new Date('2019-10-10').getTime());
|
|
|
|
|
2017-08-23 00:27:25 +00:00
|
|
|
initStoryshots();
|