-
-
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
Errors in moduleNameMapper configuration seemingly ignored #1888
Comments
bump - same issue here - configuration almost identical to the above |
Same here, this just cost me two hours of debugging ,ó_Ò, |
@cpojer we should probably validate if the module passed to |
👍 Just got hung up on this (or something very similar) for a while, because I had a misspelling ( |
@thymikee Giving this a shoot. |
@lindgr3n awesome! |
Great, working on the PR. |
I hit this issue today. Any progress on the patch? |
Have the PR here #3567 with the fix. Waiting for it to be merged. |
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. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I was following https://facebook.github.io/jest/docs/tutorial-webpack.html and I had the following in my package.json:
However, I have not installed identity-obj-proxy (due to having to upgrade node from 5 to 6 for it to work).
In this configuration, running tests produces:
I'm not 100% certain whether the "include CSS text verbatim in a JS module" is the behavior when there is no moduleNameMapper configuration at all, or it's something else, but when I installed identity-obj-proxy this error went away and the tests started running.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can
npm install
andnpm test
.I should be able to create this if necessary.
What is the expected behavior?
I expected to be told that
identity-obj-proxy
is missing in some fashion.I also expected the tests to not be attempted to run at all, given that the configuration was bogus.
Run Jest again with
--debug
and provide the full configuration it prints. Please mention your node and npm version and operating system.The text was updated successfully, but these errors were encountered: