diff options
author | Hailey <me@haileyok.com> | 2024-08-05 12:21:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 12:21:34 -0700 |
commit | 18b423396b75d8b4348a434412d0da1f38230717 (patch) | |
tree | 3a3032668f498bb2d17fbee7514493d4f82cc6b3 /jest | |
parent | fb278384c64f55e5037275a23f4bd7af91dc7274 (diff) | |
download | voidsky-18b423396b75d8b4348a434412d0da1f38230717.tar.zst |
Add `PlatformInfo` module (#4877)
Diffstat (limited to 'jest')
-rw-r--r-- | jest/jestSetup.js | 10 |
1 files changed, 10 insertions, 0 deletions
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, + } + } + }), +})) |