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

Allow all folders within src for module resolution #6

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

intellix
Copy link
Contributor

@intellix intellix commented Apr 4, 2017

Closes #5

@thymikee thymikee merged commit 8e9c603 into thymikee:master Apr 4, 2017
@thymikee
Copy link
Owner

thymikee commented Apr 4, 2017

Thank you! It's now published.

thymikee added a commit that referenced this pull request Sep 6, 2017
In #6 we introduced very loose moduleNameMapper which resulted in couple of weird bugs and until next Jest release it's impossible to override it.

This PR reverts it and adds some reasonable defaults.

Also, because of this "(.*)"mapping, while debugging #41 on master version of Jest, I encountered an issue where one of the internal Jest modules was calling path matching the regexp, but couldn't find it under src dir. This surfaced only because Jest version on master supports checking if modules in moduleNameMapper exist and throws otherwise.
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

Successfully merging this pull request may close these issues.

2 participants