Massive/jestSetup.ts

17 lines
560 B
TypeScript
Raw Normal View History

2022-10-31 04:22:08 +00:00
import 'react-native-gesture-handler/jestSetup'
import {NativeModules as RNNativeModules} from 'react-native'
RNNativeModules.RNViewShot = RNNativeModules.RNViewShot || {
captureScreen: jest.fn(),
2022-10-31 04:22:08 +00:00
}
2022-10-31 04:22:08 +00:00
jest.mock('react-native-file-access', () => jest.fn())
jest.mock('react-native-share', () => jest.fn())
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper')
jest.useFakeTimers()
2022-10-29 23:56:58 +00:00
jest.mock('react-native-reanimated', () => {
2022-10-31 04:22:08 +00:00
const Reanimated = require('react-native-reanimated/mock')
Reanimated.default.call = () => {}
return Reanimated
})