import 'react-native-gesture-handler/jestSetup' ; jest . mock ( 'react-native-reanimated' , ( ) => { const Reanimated = require ( 'react-native-reanimated/mock' ) ; Reanimated . default . call = ( ) => { } ; return Reanimated ; } ) ; jest . mock ( 'react-native/Libraries/Animated/NativeAnimatedHelper' ) ; const FRAME_TIME = 10 ; global . requestAnimationFrame = ( cb ) => { setTimeout ( cb , FRAME_TIME ) ; } ;