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

Cannot resolve module when using --watch flag #46

Closed
rmartins90 opened this issue Jan 17, 2018 · 1 comment
Closed

Cannot resolve module when using --watch flag #46

rmartins90 opened this issue Jan 17, 2018 · 1 comment

Comments

@rmartins90
Copy link

I'm using moduleNameMapper property on jest.conf.js to define alias to match the same as webpack, jest works when I run entire suite npm run unit but when I use --watch flag (or -o) process hangs with message Determining test suites to run.... I've discovered that this happens because jest can't resolve alias paths.

@eddyerburgh
Copy link
Member

Thanks for the bug report.

Looks like this is a Jest issue—jestjs/jest#4883

Could you try going to node_modules/jest-resolve/build/index.js, and adding console.error(error) before every line that says throw error?

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

2 participants