Skip to content

Commit

Permalink
viewinsightsscreen pass
Browse files Browse the repository at this point in the history
  • Loading branch information
cfiguer055 committed Dec 17, 2024
1 parent 0ca5c6f commit 21f86a8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ jest.mock('victory-native', () => {
};
});

jest.mock('expo-font', () => ({
loadAsync: jest.fn().mockResolvedValue(true),
isLoaded: jest.fn().mockReturnValue(true), // Add this mock
}));

jest.mock('react-native-gesture-handler', () => {
const View = require('react-native').View;
return {
...jest.requireActual('react-native-gesture-handler'),
GestureHandlerRootView: View,
};
});



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,25 @@ exports[`ViewInsights renders correctly 1`] = `
}
onGestureCancel={[Function]}
pointerEvents="box-none"
sheetAllowedDetents="large"
sheetAllowedDetents={
[
1,
]
}
sheetCornerRadius={-1}
sheetElevation={24}
sheetExpandsWhenScrolledToEdge={true}
sheetGrabberVisible={false}
sheetLargestUndimmedDetent="all"
sheetInitialDetent={0}
sheetLargestUndimmedDetent={-1}
style={
{
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
"zIndex": undefined,
}
}
>
Expand Down Expand Up @@ -300,6 +307,7 @@ exports[`ViewInsights renders correctly 1`] = `
>
<View
collapsable={false}
enabled={false}
handlerTag={1}
handlerType="PanGestureHandler"
needsOffscreenAlphaCompositing={false}
Expand Down Expand Up @@ -584,7 +592,11 @@ exports[`ViewInsights renders correctly 1`] = `
>
<Image
accessibilityIgnoresInvertColors={true}
source={1}
source={
{
"testUri": "../../react-native-paper/lib/commonjs/assets/back-chevron.png",
}
}
style={
[
{
Expand Down Expand Up @@ -835,7 +847,7 @@ exports[`ViewInsights renders correctly 1`] = `
},
],
{
"fontFamily": "Material Design Icons",
"fontFamily": "material-community",
"fontStyle": "normal",
"fontWeight": "normal",
},
Expand Down

0 comments on commit 21f86a8

Please sign in to comment.