Closed MichelDiz closed 6 years ago
Solved changing the Jest config in Package.json:
"jest": {
"preset": "jest-expo",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"transformIgnorePatterns": [
"node_modules/(?!(fbjs|react-native-iphone-x-helper|react-native|lottie-react-native|expo|react-native-maps|react-native-svg|react-native-branch|native-base-shoutem-theme|react-native-easy-grid|react-native-drawer|react-native-vector-icons|react-native-keyboard-aware-scroll-view|react-navigation|native-base|@expo|react-native-scrollable-tab-view)/)"
]
}
Hi, i'm trying this Seed of yours. But I having some issues with it.
I'm using the Typescript with mobx.
I can't precommit because the Jest is seeking for erros in others files:
PS. But Before precommit I have to "clean" to erase the artifacts files. Jest is looking for it too. Which are the recommendation in that case?
Cheers