Skip to content

Commit dc0733a

Browse files
committed
mock focused navigation state in country step test
1 parent 1f5b98a commit dc0733a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/ui/SelectCountryStepTest.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jest.mock('@react-navigation/native', () => {
1818
return {
1919
...actualNavigation,
2020
useFocusEffect: jest.fn(),
21+
useIsFocused: jest.fn(() => true),
2122
useRoute: jest.fn(() => ({params: {backTo: ''}})),
2223
};
2324
});

0 commit comments

Comments
 (0)