-
Notifications
You must be signed in to change notification settings - Fork 205
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
Problem with jest when import from "." instead of "./index" #373
Comments
Update: this issue only happens if your config is like:
I changed it to :
and it fixed! |
You're most welcome to create a PR with a fix 😊 |
#409 😊 😊 😊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I`m using version 3.2.0 of this module. when I import a file like this in the code
the app itself works but if I run the unit tests (jest) it will fail because it cannot import the file. If I change the
"."
to"./index"
, tests work fine.I used another package called
babel-plugin-root-import
which is similar to this package and it does not have this issue.The text was updated successfully, but these errors were encountered: