我遇到了多个关于此的线程,但未能找到解决方案。其中大部分用于网络应用程序。我将不胜感激任何帮助。谢谢寻找。
包.json
"dependencies": {
"lodash": "^4.17.4",
"native-base": "^2.2.1",
"react": "16.0.0-alpha.12",
"react-native": "0.46.1",
"react-native-firebase": "^2.0.2",
"react-native-navigation": "^1.1.134",
"react-redux": "^5.0.5",
"redux": "^3.7.1",
"redux-orm": "^0.9.4",
"redux-persist": "^4.8.2",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.1.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12",
"redux-immutable-state-invariant": "^2.0.0",
"redux-logger": "^3.0.6",
"redux-orm-proptypes": "^0.1.0"
},
"jest": {
"preset": "react-native",
"verbose": true,
"testPathIgnorePatterns": [
"/node_modules/",
"__tests__/factories",
"__tests__/utils"
]
}