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
TypeScript support makes test with certain deps fail #7000
Comments
Without the |
|
My workaround is to change the test command in the
It's not perfect, but works for us. I think the user should be able to at least overwrite |
I am also getting this error for another package (internal pkg and lodash-es) and --transformIgnorePatterns does not work for me. |
I just experienced this same issue after adding Reason and Bucklescript to my CRA project:
Since we can’t change
It would be great if CRA could support this out of the box or with an easier config option. Edit: It seems like the custom
|
In case someone doesn't want to use the inline command, another solution is adding it as a jest config override in package.json:
It seems to be supported by CRA, from this line: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/scripts/utils/createJestConfig.js#L71 |
Is this a bug report?
Yes.
Certain dependencies (specifically carbon-charts) make the tests fail. The bug ist that the relevant settings for jest can not be overwritten. See carbon-design-system/carbon-charts#126 for the correspondent issue at carbon-charts.
Did you try recovering your dependencies?
Yes
Steps to Reproduce
Expected Behavior
Tests should run fine.
Actual Behavior
Reproducible Demo
See commands above.
The text was updated successfully, but these errors were encountered: