Я пытаюсь запустить свои тесты, но по какой-то причине я получаю следующую ошибку при выполнении npm run test
.
● Test suite failed to run
Cannot find module 'setupDevtools' from 'setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:229:17)
at Object.<anonymous> (node_modules/react-native/jest/setup.js:9:6)
Вот мой package.json
{
"private": true,
"name": "app",
"version": "0.1.0",
"scripts": {
"start": "react-native start",
"test": "jest",
"test:watch": "jest -w",
},
"jest": {
"preset": "react-native"
},
"dependencies": {
"base-64": "^0.1.0",
"date-fns": "^2.0.0-alpha.8",
"hoist-non-react-statics": "^2.5.5",
"react": "16.3.1",
"react-native": "^0.55.4",
},
"devDependencies": {
"babel-eslint": "^8.2.3",
"babel-jest": "^24.7.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-preset-react-native-stage-0": "^1.0.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.8.2",
"flow-bin": "^0.97.0",
"flow-typed": "^2.5.1",
"jest": "^24.7.1",
"jest-react-native": "^18.0.0",
"prettier": "^1.12.1",
"react-devtools": "^3.2.2",
"react-native-testing-library": "^1.7.0",
"react-test-renderer": "16.3.1"
}
}