Skip to content

Commit

Permalink
add mocks for RNNN constants
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Oct 17, 2023
1 parent 1607f52 commit fc7a988
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/jest/jestSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);

jest.mock('react-native-navigation', () => ({
getNavigationConstants: () => ({ constants: [] }),
Navigation: { constants: async () => {} },
Navigation: {
constants: async () => ({
statusBarHeight: 10,
topBarHeight: 10,
bottomTabsHeight: 10,
}),
},
}));

jest.mock('react-native-background-timer', () => ({}));
Expand Down

0 comments on commit fc7a988

Please sign in to comment.