Skip to content

Commit

Permalink
test: add useFocusEffect to navigation mock
Browse files Browse the repository at this point in the history
  • Loading branch information
redpanda-bit committed Sep 26, 2023
1 parent 95f187e commit 719964d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/utils/LHNTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jest.mock('@react-navigation/native', () => {
const actualNav = jest.requireActual('@react-navigation/native');
return {
...actualNav,
useFocusEffect: jest.fn(),
useIsFocused: () => ({
navigate: mockedNavigate,
}),
Expand Down

0 comments on commit 719964d

Please sign in to comment.