-
-
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
Babel-Jest doesn't support Babel 7 #6476
Comments
We're seeing this too, here's the output of our envinfo: npx envinfo --preset jest
System:
OS: macOS High Sierra 10.13.5
CPU: x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
Binaries:
Node: 9.11.1
Yarn: 1.5.1
npm: 5.6.0
npmPackages:
jest:
wanted: ^22.4.2
installed: 22.4.3 |
It does work with babel 7, please read the docs: https://facebook.github.io/jest/docs/en/getting-started.html#using-babel |
It doesn't work with Babel 7 following the docs.
|
@lloydjatkinson, while this doesn't solve your problem, to install babel 7+ you have to include the @ prefix npm i @babel/core@7.0.0-beta.51 |
I have to agree with @lloydjatkinson. I'm no stranger to I'm using a @paulcbetts, were you able to get this working? |
If you think there's an issue after following the docs, please open up a new issue with a clear reproduction (setting up a small repo would be the best, this issue provided no such thing). Just saying "doesn't work" gives us nothing to go on, since it does work (we use at at work). Seeing a misconfiguration might give us a good idea on how to improve the docs 🙂 |
Here is the new issue with a minimal repo: #6662 |
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. |
🐛 Feature
To Reproduce
npm install @babel/core babel-jest
./node_modules/.bin/jest
Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
Expected behavior
I would like for this to be supported.
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: