'Getting 'could not resolve "jest-config" package from the "jest" npm package directory.'
I am getting "jest-config" package from the "jest" npm package directory error when I try to run e2e test for android application, I am using detox test -c android, I installed jest and everything and followed documentation as well.
detox[30627] ERROR: [cli.js] Could not resolve "jest-config" package from the "jest" npm package directory.
detox[30627] ERROR: [cli.js]
detox[30627] ERROR: [cli.js] This means that Detox could not find it in any of the following locations:
detox[30627] ERROR: [cli.js] * /Users/vamsikrishna/Documents/temp/payzapp/node_modules/jest/node_modules
detox[30627] ERROR: [cli.js] * /Users/vamsikrishna/Documents/temp/payzapp/node_modules
detox[30627] ERROR: [cli.js] * /Users/vamsikrishna/Documents/temp/node_modules
detox[30627] ERROR: [cli.js] * /Users/vamsikrishna/Documents/node_modules
detox[30627] ERROR: [cli.js] * /Users/vamsikrishna/node_modules
detox[30627] ERROR: [cli.js] * /Users/node_modules
detox[30627] ERROR: [cli.js] * /node_modules
detox[30627] ERROR: [cli.js]
detox[30627] ERROR: [cli.js] HINT: Consider reporting this as an issue at: https://github.com/wix/Detox/issues
Solution 1:[1]
Apparently, you are missing the jest-config
package in the node_module.
To solve this, simply install the missing package.
npm install jest-config -D
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |