mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-19 20:40:20 -06:00
add async storage to jest mocks
This commit is contained in:
@@ -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
|
||||
|
||||
3
jest/setup/async-storage.ts
Normal file
3
jest/setup/async-storage.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
jest.mock('@react-native-async-storage/async-storage', () =>
|
||||
require('@react-native-async-storage/async-storage/jest/async-storage-mock'),
|
||||
)
|
||||
Reference in New Issue
Block a user