Skip to content

Commit

Permalink
mock createAnimatedPropAdapter from react-native-reanimated
Browse files Browse the repository at this point in the history
  • Loading branch information
rayane-djouah committed Dec 19, 2023
1 parent c12ad0f commit b57637d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ui/UnreadIndicatorsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jest.setTimeout(30000);
jest.mock('../../src/libs/Notification/LocalNotification');
jest.mock('../../src/components/Icon/Expensicons');

jest.mock('react-native-reanimated', () => ({
...jest.requireActual('react-native-reanimated/mock'),
createAnimatedPropAdapter: jest.fn,
}));

beforeAll(() => {
// In this test, we are generically mocking the responses of all API requests by mocking fetch() and having it
// return 200. In other tests, we might mock HttpUtils.xhr() with a more specific mock data response (which means
Expand Down

0 comments on commit b57637d

Please sign in to comment.