-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Module resolution fails when using both haste and moduleNameMapper config options #7086
Comments
I can try to tackle this one if help is still needed |
@grosto still an active bug from what I know. Thank you! |
@grosto looks like you may be correct. I can't re-test my original reproduction example right now, but I'll try to do so later. |
Going to optimistically close, if it's still an issue let us know and we'll re-open 👍 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Utilizing both
haste
andmoduleNameMapper
config options causes Jest's module resolution to fail.To Reproduce
yarn install
yarn test
Expected behavior
The required module resolves and the test passes.
Link to repl or repo (highly encouraged)
https://github.com/HealthTeacher/jest-haste-module-name-mapper
Run
npx envinfo --preset jest
Paste the results here:
Notes
require
with a relative require fixes the related test:const Greeter = require('./components/Greeter');
components/Greeter/index.web.js
tocomponents/Greeter/index.js
also fixes the related test.haste
andmoduleNameMapper
config appears to cause an issue.Error Output
The text was updated successfully, but these errors were encountered: