在遵循了实现说明之后,我正在基于expo.io的react本机应用程序上实现jest,我已经能够在我的系统上成功通过jest测试
问题出在bitbucket管道上。我收到以下问题,管道出现故障
npx jest --ci
● Validation Error:
Module react-native/jest/hasteImpl.js in the haste.hasteImplModulePath option was not found.
<rootDir> is: /opt/atlassian/pipelines/agent/build下面是我在package.json文件中的jest配置
"jest": {
"preset": "jest-expo"
},
"devDependencies": {
"babel-jest": "^23.6.0",
"babel-preset-react-native": "^4.0.1",
"expo-cli": "^2.4.3",
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"jest": "^23.6.0",
"jest-expo": "^31.0.0",
"jest-react-native": "^18.0.0",
"react-test-renderer": "^16.6.3"}
有人能告诉我如何解决这个问题吗?
应用程序和测试运行良好。但失败的是管道!
发布于 2019-01-12 00:35:51
我遇到了这个问题,并将jest-expo从^31.0.0"降级为~29.0.0,然后它又开始工作了。
https://stackoverflow.com/questions/53814689
复制相似问题