Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find a root directory while resolving a config file path. #35

Open
fotonmoton opened this issue Nov 11, 2018 · 2 comments
Open

Can't find a root directory while resolving a config file path. #35

fotonmoton opened this issue Nov 11, 2018 · 2 comments

Comments

@fotonmoton
Copy link

yarn jest-webpack --config ./config/jest.config.js --rootDir .

gives:

Error: Can't find a root directory while resolving a config file path.
Provided path to resolve: ./config/jest.config.js
cwd: /home/foton/workspace/self_study/webpack/.cache/jest-webpack
    at exports.default (/home/foton/workspace/self_study/webpack/node_mod
ules/jest-config/build/resolveConfigPath.js:65:11)    at readConfig (/home/foton/workspace/self_study/webpack/node_modules/
jest-config/build/index.js:166:80)
    at getConfigs (/home/foton/workspace/self_study/webpack/node_modules/
jest-cli/build/cli/index.js:473:77)
    at Object.<anonymous> (/home/foton/workspace/self_study/webpack/node_
modules/jest-cli/build/cli/index.js:251:23)    at Generator.next (<anonymous>)
    at step (/home/foton/workspace/self_study/webpack/node_modules/jest-c
li/build/cli/index.js:206:30)
    at /home/foton/workspace/self_study/webpack/node_modules/jest-cli/bui
ld/cli/index.js:225:14
    at new Promise (<anonymous>)    at Object.<anonymous> (/home/foton/workspace/self_study/webpack/node_
modules/jest-cli/build/cli/index.js:203:12)
    at Object.runCLI (/home/foton/workspace/self_study/webpack/node_modul
es/jest-cli/build/cli/index.js:317:18)

but with yarn jest --config ./config/jest.config.js --rootDir . I don't have such error.

@MiguelNiblock
Copy link

this is still an issue. Although I get the same error also with your solution

@tatianajiselle
Copy link

also encountering this error, however it works with rootDir:

"jest --config ./test/e2e/jest-e2e.json --rootDir ."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants