mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
4256d0c83c
Co-authored-by: Michał Pierzchała <thymikee@gmail.com> Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
12 lines
514 B
JavaScript
12 lines
514 B
JavaScript
/* eslint-disable no-undef, import/no-extraneous-dependencies */
|
|
|
|
// Import Jest Native matchers
|
|
import '@testing-library/jest-native/extend-expect';
|
|
|
|
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
|
|
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
|
|
|
// Setup Reanimated mocking for Drawer navigation
|
|
global.ReanimatedDataMock = { now: () => Date.now() };
|
|
require('react-native-reanimated/lib/reanimated2/jestUtils').setUpTests();
|