I have two error on run test . I dont solve it :/
Node: v6.11.2
Npm : v3.10.10
First error is Cannot read property 'Object.
TypeError: Cannot read property 'Object.<anonymous>' of null
at Runtime._execModule (/home/dby/test/jesttest/node_modules/jest-runtime/build/index.js:510:72)
at Runtime.requireModule (/home/dby/test/jesttest/node_modules/jest-runtime/build/index.js:329:14)
at Runtime.requireModuleOrMock (/home/dby/test/jesttest/node_modules/jest-runtime/build/index.js:405:19)
at Function.bezier (/home/dby/test/jesttest/node_modules/react-native/Libraries/Animated/src/Easing.js:228:13)
at ease (/home/dby/test/jesttest/node_modules/react-native/Libraries/Animated/src/Easing.js:94:14)
at TimingAnimation._easing (/home/dby/test/jesttest/node_modules/react-native/Libraries/Animated/src/Easing.js:262:10)
at TimingAnimation.onUpdate (/home/dby/test/jesttest/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:338:22)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
package.json
"dependencies": {
"native-base": "^2.3.1",
"react": "16.0.0-alpha.12",
"react-native": "0.47.2",
"react-native-vector-icons": "^4.3.0",
"react-navigation": "^1.0.0-beta.11",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-jest": "20.0.3",
"babel-preset-react-native": "^3.0.1",
"enzyme": "^2.9.1",
"jest": "20.0.4",
"jest-react-native": "^18.0.0",
"react-addons-test-utils": "^15.6.0",
"react-dom": "^15.6.1",
"react-test-renderer": "^16.0.0-beta.5",
"redux-mock-store": "^1.2.3"
},
"jest": {
"preset": "react-native",
"transformIgnorePatterns": [
"/node_modules/(?!native-base)/",
]
}
When I dont use jest --no-cache , throw this error
Second erro
/usr/lib/node_modules/jest-cli/node_modules/jest-runtime/build/index.js:510
const wrapper = this._environment.runScript(transformedFile.script)[ ^
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. Thank you :)
Same error here for a completely different kind of test, using Node.js backend, aside that there is not information about this.
TypeError: Cannot read property 'Object.<anonymous>' of null
at Runtime._execModule (/Users/nahuelveron/koae/node_modules/jest-runtime/build/index.js:511:22)
at Runtime.requireModule (/Users/nahuelveron/koae/node_modules/jest-runtime/build/index.js:329:14)
at Runtime.requireModuleOrMock (/Users/nahuelveron/koae/node_modules/jest-runtime/build/index.js:405:19)
at OAIRouter._loadHandler_ (/Users/nahuelveron/koae/node_modules/koa-oai-router/dist/oai-router.js:241:22)
at OAIRouter._loadHandlers_ (/Users/nahuelveron/koae/node_modules/koa-oai-router/dist/oai-router.js:224:28)
at OAIRouter._hookEndpoint_ (/Users/nahuelveron/koae/node_modules/koa-oai-router/dist/oai-router.js:214:27)
at OAIRouter.init (/Users/nahuelveron/koae/node_modules/koa-oai-router/dist/oai-router.js:175:16)
at /Users/nahuelveron/koae/node_modules/koa-oai-router/dist/oai-router.js:190:15
at <anonymous>
@cpojer I think that there is a bug here since it fails importing the module (on jest), maybe is a dynamic require issue?
Most helpful comment
Same error here for a completely different kind of test, using Node.js backend, aside that there is not information about this.
@cpojer I think that there is a bug here since it fails importing the module (on jest), maybe is a dynamic require issue?