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
jest-resolve fail to resolve json files #3252
Comments
Does this help? #3044 |
Glad it helped! 🙂 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug? bug
What is the current behavior?
Currently when there are any dependencies which
require
.json
files, and not explicitly specifying the type.json
(not sure if it matters), jest-resolve is throwing an error as following:This is the library which throws the error
https://github.com/betit/known-css-properties/blob/master/index.js#L1 (and the import is from a json file), also was getting the same issue from normalize-package-data
I'm currently switching a library from using jasmine (also as a runner) to jest. This has happened in 2 libraries (dependency of a dependency)
What is the expected behavior?
I believe that such an import should work correctly since it works in node and also in jasmine runner.
personally i wouldn't use json files in the first place but that's another story :)
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
The text was updated successfully, but these errors were encountered: