Skip to content

Commit

Permalink
Mock all child components
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzieOrca committed May 24, 2019
1 parent 6e92ddd commit c29e9e0
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 316 deletions.
6 changes: 6 additions & 0 deletions src/containers/WelcomeScreen/__tests__/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ const next = jest.fn(() => ({ type: 'next' }));

jest.mock('react-native-device-info');
jest.mock('../../../actions/analytics');
jest.mock('../../../components/BottomButton', () => 'BottomButton');
jest.mock('../../../components/common', () => ({
Flex: 'Flex',
Text: 'Text',
Button: 'Button',
}));

// @ts-ignore
common.disableBack = { add: jest.fn(), remove: jest.fn() };
Expand Down

0 comments on commit c29e9e0

Please sign in to comment.