question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Process Hangs When Invoking `vue-cli-service test:unit` with Jest

See original GitHub issue

Version

3.0.0-beta.15

Reproduction link

https://github.com/jbenner-radham/vue-cli-jest-test

Steps to reproduce

Via the CLI:

  1. vue create <app-name>
  2. Select “Manually select features”
  3. Select “Babel”, “Linter / Formatter”, and “Unit Testing”
  4. Select “ESLint with error prevention only”
  5. Select “Lint on save” and “Lint and fix on commit”
  6. Select “Jest”
  7. Select “In dedicated config files”
  8. Enter “n”
  9. cd <app-name>
  10. 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
mvdwaetercommented, Dec 3, 2018

Or better, on OSX: brew uninstall watchman brew install watchman

After I was able to run the tests normally again: yarn test:unit

3reactions
fdeagecommented, Dec 21, 2018

Reinstalling watchman worked for me too, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found