Skip to content

Commit d474c72

Browse files
committed
fix: fix failing test by adding mock
1 parent 09dc23d commit d474c72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

__tests__/src/components/Toasts.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jest.mock('react-native-reanimated', () => {
1414
jest.mock('react-native-safe-area-context', () => {
1515
return {
1616
useSafeAreaInsets: () => ({ top: 0, bottom: 0, left: 0, right: 0 }),
17+
useSafeAreaFrame: () => ({
18+
x: 0,
19+
y: 0,
20+
width: 350,
21+
height: 650,
22+
}),
1723
};
1824
});
1925

0 commit comments

Comments
 (0)