From 18b423396b75d8b4348a434412d0da1f38230717 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 5 Aug 2024 12:21:34 -0700 Subject: Add `PlatformInfo` module (#4877) --- jest/jestSetup.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'jest/jestSetup.js') diff --git a/jest/jestSetup.js b/jest/jestSetup.js index a6b7c24f6..ac175900e 100644 --- a/jest/jestSetup.js +++ b/jest/jestSetup.js @@ -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, + } + } + }), +})) -- cgit 1.4.1