mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
199de62c74
* test - React Navigation Drawer * docs - updated documentation for the website * docs - added Drawer Navigator test to the website * actioning PR suggestions * docs - simple doc cleanup;
15 lines
520 B
JavaScript
15 lines
520 B
JavaScript
import 'react-native-gesture-handler/jestSetup';
|
|
|
|
jest.mock('react-native-reanimated', () => {
|
|
const Reanimated = require('react-native-reanimated/mock');
|
|
|
|
// The mock for `call` immediately calls the callback which is incorrect
|
|
// So we override it with a no-op
|
|
Reanimated.default.call = () => {};
|
|
|
|
return Reanimated;
|
|
});
|
|
|
|
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
|
|
jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');
|