jest mock

This commit is contained in:
Hailey
2024-08-04 20:00:36 -07:00
parent eeef450150
commit 31076ce595
+10
View File
@@ -95,3 +95,13 @@ jest.mock('expo-application', () => ({
nativeApplicationVersion: '1.0.0',
nativeBuildVersion: '1',
}))
jest.mock('expo-modules-core', () => ({
requireNativeModule: jest.fn().mockImplementation(moduleName => {
if (moduleName === 'ExpoPlatformInfo') {
return {
getIsReducedMotionEnabled: () => false,
}
}
}),
}))