We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-beta.15
https://github.com/davestaab/vue-cli-jest-broken.git
vue create test-app
pwa, eslint, unit-jest e2e-cypress
npm run test:unit
Unit tests fail with error:
Test suite failed to run
Cannot find module '@babel/core' at Object.<anonymous> (node_modules/babel-core/index.js:2:18)
The basic unit test is expected to run and pass
The unit tests can't run and fails. Error message is:
It seems to be related to the e2e-cypress plugin. If I don't choose cypress I can get it to run the jest tests
The text was updated successfully, but these errors were encountered:
I found the problem. I managed to make a vue cli preset without babel but with jest.
Here's my preset:
"res-standard": { "useConfigFiles": true, "plugins": { "@vue/cli-plugin-pwa": {}, "@vue/cli-plugin-eslint": { "config": "prettier", "lintOn": ["save", "commit"] }, "@vue/cli-plugin-unit-jest": {}, "@vue/cli-plugin-e2e-cypress": {} } }
Notice no mention of @vue/cli-plugin-babel.
@vue/cli-plugin-babel
So the question is how can we prevent someone else from making this mistake?
Is it true that jest is dependant on babel? If so should jest not be an option if you don't choose babel?
Sorry, something went wrong.
a91d022
No branches or pull requests
Version
3.0.0-beta.15
Reproduction link
https://github.com/davestaab/vue-cli-jest-broken.git
Steps to reproduce
vue create test-app
pwa, eslint, unit-jest e2e-cypress
as the featuresnpm run test:unit
Unit tests fail with error:
Test suite failed to run
What is expected?
The basic unit test is expected to run and pass
What is actually happening?
The unit tests can't run and fails.
Error message is:
Test suite failed to run
It seems to be related to the e2e-cypress plugin.
If I don't choose cypress I can get it to run the jest tests
The text was updated successfully, but these errors were encountered: