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

jest commands hangs #4529

Closed
kasperpeulen opened this issue Sep 23, 2017 · 9 comments
Closed

jest commands hangs #4529

kasperpeulen opened this issue Sep 23, 2017 · 9 comments

Comments

@kasperpeulen
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

I just followed this guide: https://facebook.github.io/jest/docs/en/getting-started.html, but when I run jest, nothing happens, the terminal seem to hang/freeze.

image

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.

Any repository will probably do, but for example:
https://repl.it/L6JH/0

What is the expected behavior?
The expected behaviour is that it won't freeze/hang, and that my tests are running.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

jest version 21.1.0, but also tested at 20.0.4, 19.0.2, 13.2.3
node v8.5.0, but same at 7.5.0 and 6.5.0
tested on yarn 1.0.2, npm5 and npm4
macOS Siera 10.12.6

It is super strange, I just seem to come in an endless loop or something? Anything that I can do to give you guys more information?

@kasperpeulen
Copy link
Author

brew upgrade watchman fixed this for me

it seems like the reason it was hanging was because the command watchman version was hanging, and jest was executing that with execSync

@cpojer cpojer closed this as completed Sep 24, 2017
@akx
Copy link

akx commented Sep 29, 2017

Same problem here (watchman 4.9.0, the latest according to Homebrew) – fixed by brew uninstall watchman...

@blamh
Copy link

blamh commented Oct 2, 2017

Had to do a brew reinstall watchman before it would work.

@bierik
Copy link

bierik commented Aug 16, 2018

@blamh I love you ❤️

@buildbreakdo
Copy link

Had to force quite watchman then the test that was hanging immediately ran.

@a-tokyo
Copy link

a-tokyo commented Apr 20, 2020

In my case (Which i think is rare) I fixed it by adding --forceExit flag

@tom10271
Copy link

tom10271 commented Apr 21, 2020

Upgrading, reintstalling and uninstallin watchman are all not working for me to fix my problem on macOS 10.15

But this fixed my problem

facebook/watchman#358 (comment)

@gpietro
Copy link

gpietro commented Sep 7, 2020

I had the same problem on macos catalina. I don't know why but there is an error on system permissions and with sudo npm test it runs...
Screenshot 2020-09-08 at 09 01 36

@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants