Skip to content

Commit b5201c2

Browse files
authored
Merge pull request Expensify#67909 from callstack-internal/fix/reassure-tests
[NOQA] Fix Reassure test failures
2 parents 1168901 + 69bb3ad commit b5201c2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/perf-test/ReportActionCompose.perf-test.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ jest.mock('@gorhom/portal');
2121
jest.mock('react-native-reanimated', () => ({
2222
...jest.requireActual<typeof Animated>('react-native-reanimated/mock'),
2323
useAnimatedRef: jest.fn(),
24-
LayoutAnimationConfig: () => {
25-
return ({children}: {children: React.ReactNode}) => children;
26-
},
24+
LayoutAnimationConfig: ({children}: {children: React.ReactNode}) => children,
25+
Keyframe: jest.fn().mockImplementation(() => ({
26+
duration: jest.fn().mockReturnThis(),
27+
delay: jest.fn().mockReturnThis(),
28+
easing: jest.fn().mockReturnThis(),
29+
withCallback: jest.fn().mockReturnThis(),
30+
})),
2731
}));
2832

2933
jest.mock('../../src/libs/Navigation/Navigation', () => ({
3034
navigate: jest.fn(),
3135
getReportRHPActiveRoute: jest.fn(),
36+
isTopmostRouteModalScreen: jest.fn(() => false),
3237
}));
3338

3439
jest.mock('@react-navigation/native', () => {

0 commit comments

Comments
 (0)