add async storage to jest mocks

This commit is contained in:
Violet Caulfield
2025-11-09 15:29:01 -06:00
parent 583fdd6e78
commit 9d10b61a27
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ module.exports = {
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: [
'./jest/setup/setup.ts',
'./jest/setup/async-storage.ts',
'./jest/setup/blur.ts',
'./jest/setup/carplay.ts',
'./jest/setup/device-info.js', // JS to prevent Typescript implicit any warning

View File

@@ -0,0 +1,3 @@
jest.mock('@react-native-async-storage/async-storage', () =>
require('@react-native-async-storage/async-storage/jest/async-storage-mock'),
)