mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
2bce396a46
* docs: update references to Jest Native * chore: update docs * chore: update example apps * docs: update * chore: upgrade example apps * chore: self code review * chore: docs tweaks * docs: code review changes
12 lines
515 B
JavaScript
12 lines
515 B
JavaScript
/* eslint-disable no-undef, import/no-extraneous-dependencies */
|
|
|
|
// Import Jest Native matchers
|
|
import '@testing-library/react-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();
|