Fix to tests

zio/stable
Paul Frazee 2022-11-22 14:30:13 -06:00
parent ce56d4e34e
commit 1df48d4dad
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock'

3
jest.js 100644
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'),
)

View File

@ -74,6 +74,7 @@
},
"jest": {
"preset": "react-native",
"setupFiles": ["./jest.js"],
"moduleFileExtensions": [
"ts",
"tsx",