Skip to content
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

README mistake regarding "babel-core@bridge" #524

Open
yairEO opened this issue Dec 25, 2022 · 0 comments
Open

README mistake regarding "babel-core@bridge" #524

yairEO opened this issue Dec 25, 2022 · 0 comments

Comments

@yairEO
Copy link

yairEO commented Dec 25, 2022

This section is confusing: https://github.com/vuejs/vue-jest#usage-with-babel-7

If you use jest > 24.0.0 and babel-jest make sure to install babel-core@bridge

babel-jest is already using @babel/core version 7+:

https://github.com/facebook/jest/blob/main/packages/babel-jest/package.json#L30

So why would you need to install the bride? it's needed only when other packages are using Babel version below 7.


Also worth mentioning in the README that this package is not needed if one already has Babel installed & configured with a Babel configuration file & preset for vue, because all Jest tests files automatically pass through it, as clearly mentioned in Jest "getting started" docs:

image

So, it is very confusing, as why vue-jest is needed at all.

One can only assume, after installing Babel, the next logical step is to install a preset, and for vue, that would be: https://www.npmjs.com/package/@vue/babel-preset-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant