@@ -3,42 +3,6 @@ import HomeScreen from "components/screens/HomeScreen";
33import { renderWithProviders } from "helpers/testUtils" ;
44import React from "react" ;
55
6- jest . mock ( "react-native-safe-area-context" , ( ) => ( {
7- SafeAreaProvider : ( { children } : { children : React . ReactNode } ) => children ,
8- useSafeAreaInsets : ( ) => ( { top : 0 , bottom : 0 , left : 0 , right : 0 } ) ,
9- } ) ) ;
10-
11- jest . mock ( "@gorhom/bottom-sheet" , ( ) => ( {
12- BottomSheetModalProvider : ( { children } : { children : React . ReactNode } ) =>
13- children ,
14- BottomSheetModal : "View" ,
15- BottomSheetTextInput : "input" ,
16- BottomSheetView : "View" ,
17- BottomSheetScrollView : "ScrollView" ,
18- BottomSheetFlatList : "FlatList" ,
19- BottomSheetSectionList : "SectionList" ,
20- BottomSheetDraggableView : "View" ,
21- BottomSheetBackdrop : "View" ,
22- } ) ) ;
23-
24- jest . mock ( "components/sds/Icon" , ( ) => ( {
25- __esModule : true ,
26- default : new Proxy ( { } , { get : ( ) => "View" } ) ,
27- } ) ) ;
28-
29- jest . mock ( "components/screens/HomeScreen/ManageAccountBottomSheet" , ( ) => ( {
30- __esModule : true ,
31- default : function MockManageAccountBottomSheet ( ) {
32- return null ;
33- } ,
34- } ) ) ;
35-
36- jest . mock ( "components/analytics/DebugBottomSheet" , ( ) => ( {
37- DebugBottomSheet : function MockDebugBottomSheet ( ) {
38- return null ;
39- } ,
40- } ) ) ;
41-
426jest . mock ( "components/primitives/Menu" , ( ) => {
437 const MenuRoot = ( { children } : { children : React . ReactNode } ) => (
448 < div data-testid = "menu-root" > { children } </ div >
0 commit comments