-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
FAIL __tests__/App-test.js
● Test suite failed to run
Cannot find module 'ReactNativeDefaultInjection' from 'setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:142:17)
Test Summary
› Ran all tests.
› 1 test suite failed, 0 tests passed (0 total in 1 test suite, run time 0.242s)
npm ERR! Test failed. See above for more details.
here is my config of jest
"jest": {
"preset": "jest-react-native",
"preprocessorIgnorePatterns": [
"node_modules/(?!react-native|jpush-react-native)"
],
"haste": {
"defaultPlatform": "ios",
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"react",
"react-native"
],
"moduleFileExtensions": [
"js",
"jsx"
],
"collectCoverage": false,
"verbose": true,
"testPathIgnorePatterns": [
"/node_modules/",
".+/(resources)/.+",
".+/(autoMockOff.js)"
]
},
"devDependencies": {
"babel-jest": "^15.0.0",
"babel-plugin-module-resolver": "^2.0.0",
"babel-polyfill": "^6.16.0",
"babel-preset-react-native": "^1.9.0",
"babel-preset-react-native-stage-0": "^1.0.1",
"jest": "^15.1.1",
"jest-react-native": "^15.0.0",
"react-test-renderer": "^15.3.2",
"remote-redux-devtools": "^0.4.7"
}
any idea?
cooperka, manosim, cosmith, amensouissi and crchemist
Metadata
Metadata
Assignees
Labels
No labels