Skip to content

Commit

Permalink
Use JavaScript configuration for async-storage-mock (as advised in re…
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwacker committed Oct 31, 2021
1 parent fa8f477 commit bcaae7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
"jest": {
"preset": "jest-expo",
"setupFiles": [
"<rootDir>/test/setup.ts"
"<rootDir>/test/setup.ts",
"<rootDir>/test/mock-async-storage.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import "react-native"

// libraries to mock
import "./mock-react-native-image"
import "./mock-async-storage"
import "./mock-i18n"

jest.useFakeTimers()
declare global {
let __TEST__
let __TEST__: never
}

0 comments on commit bcaae7d

Please sign in to comment.