Fix to tests
This commit is contained in:
parent
ce56d4e34e
commit
1df48d4dad
3 changed files with 5 additions and 0 deletions
1
__mocks__/async-storage.js
Normal file
1
__mocks__/async-storage.js
Normal file
|
@ -0,0 +1 @@
|
|||
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock'
|
3
jest.js
Normal file
3
jest.js
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'),
|
||||
)
|
|
@ -74,6 +74,7 @@
|
|||
},
|
||||
"jest": {
|
||||
"preset": "react-native",
|
||||
"setupFiles": ["./jest.js"],
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue