-
-
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
transformIgnorePatterns setting doesn't work when using a .babelrc instead of babel.config.js #10256
Comments
thanks! saved me a lot of time debugging |
(changed .babelrc because jestjs/jest#10256)
Thanks! Can't believe this is still an issue! Was causing me a lot of headache today... 😞 EDIT: probably good to read README: https://github.com/facebook/jest#using-babel |
Thanks! |
This (transpiling node_modules) is documented by babel: https://babeljs.io/docs/en/configuration#whats-your-use-case |
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. |
🐛 Bug Report
Jest fails to respect the
transformIgnorePatterns
setting in package.json when when babel is configured using.babelrc
. However, if.babelrc
is converted tobabel.config.js
then Jest runs just fine.To Reproduce
Steps to reproduce the behavior:
.babelrc
npm install --save @bau-design/components-react
import { Card } from '@bau-design/comopnents-react
transformIgnorePattern
inpackage.json
Expected behavior
Expect Jest to work the same for either a
.babelrc
orbabel.config.js
. If the.babelrc
is replaced with the equivalentbabel.config.js
, then things magically start working:Link to repl or repo (highly encouraged)
envinfo
The text was updated successfully, but these errors were encountered: