Jest seems not working with babel v7
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior?
I get an TypeError: Cannot read property 'loose' of undefined (While processing preset: "/Users/x/Desktop/jest-test/node_modules/babel-preset-react-app/index.js") on using jest v22.4.2 with babel v7
I’ve searched for this error and found this Bug in Babel, which suggests that when babel-core instead of @babel/core is required by any package, it will break. And it seems like jest-runtime v22.4.2 (currently the newest one) is doing exactly this.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
I created this GitHub Repo
What is the expected behavior? No error and it works with babel v7
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
- Operating System: MacOS 10.13.2 (High Sierra)
- Nodejs: v9.4.0
- npm: v5.7.1
(all other dependencies can be found in the aforementioned GitHub Repo)
Issue Analytics
- State:
- Created 6 years ago
- Comments:15

Top Related StackOverflow Question
same issue. i have
@babel/coreandbabel-core@^7.0.0-0installed. the strange thing is when i try to use.babelrc' it works. but when i usebabel.config.jsit dosent work in that case. here is mybabel.config.js`Ahh forget it, in the Docs its
npm install --save-dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime, so bothbabel-coreand@babel-coreneed to be installed 🤐 must have missed that, sorry ✌️