Reactjs React Native-JEST:haste.hasteImplModulePath选项中的React Native/JEST/hasteImpl.js未找到
我正在基于expo.io的react本机应用程序上实现jest 在遵循实现说明之后,我已经能够成功地通过我的系统上的jest测试 问题在于bitbucket管道。我遇到以下问题,管道失败Reactjs React Native-JEST:haste.hasteImplModulePath选项中的React Native/JEST/hasteImpl.js未找到,reactjs,react-native,jestjs,expo,Reactjs,React Native,Jestjs,Expo,我正在基于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: /o
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
}
有人能告诉我如何解决这个问题吗
应用程序和测试运行良好。但是管道失败了 我遇到了这个问题,将
jest expo
从^31.0.0“
降级到~29.0.0
,然后它又开始工作了
"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"