Process Hangs When Invoking `vue-cli-service test:unit` with Jest
See original GitHub issueVersion
3.0.0-beta.15
Reproduction link
https://github.com/jbenner-radham/vue-cli-jest-test
Steps to reproduce
Via the CLI:
vue create <app-name>
- Select “Manually select features”
- Select “Babel”, “Linter / Formatter”, and “Unit Testing”
- Select “ESLint with error prevention only”
- Select “Lint on save” and “Lint and fix on commit”
- Select “Jest”
- Select “In dedicated config files”
- Enter “n”
cd <app-name>
yarn test:unit
What is expected?
The unit tests to run and complete successfully.
What is actually happening?
The test service hangs indefinitely e.g.
➜ vue-cli-jest-test git:(master) yarn test:unit
yarn run v1.7.0
$ vue-cli-service test:unit
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
"vue-cli-service test:unit " runs succesfully; but npm exits err ...
Running ./node_modules/. bin/vue-cli-service test:unit I get just the test and Jest output. Everything works as expected.
Read more >vue/cli-plugin-unit-jest
Injected Commands #. vue-cli-service test:unit. Run unit tests with Jest. Default testMatch is <rootDir> ...
Read more >Frontend testing standards and style guidelines - GitLab Docs
We use Jest to write frontend unit and integration tests. Jest tests can be found in ... Vue is a critical part of...
Read more >@vue/cli-plugin-unit-jest | Yarn - Package Manager
Injected Commands. vue-cli-service test:unit. Run unit tests with Jest. Default testMatch is <rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.
Read more >HOW TO TEST WITH VUE-CLI 3.0! (Vue.js) - YouTube
Let's look at testing with Vue.js 3.0! It's super easy!Interested in my Nuxt.js Vue.js Course? - Sign up here to be notified!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or better, on OSX:
brew uninstall watchman
brew install watchman
After I was able to run the tests normally again:
yarn test:unit
Reinstalling
watchman
worked for me too, thanks!