Jest: Jest freezes at startup

Created on 15 Nov 2018  路  2Comments  路  Source: facebook/jest

馃悰 Bug Report

Jest freezes at startup without showing any output on the cli. It never stops and curiously doesn't consume much cpu resources, leading me to believe that it hangs before actually running tests. I've included a link to a repo where the issue is reproducible below.

To Reproduce

Steps to reproduce the behavior:

  1. clone the branch upgrade_deps from https://github.com/marvinhagemeister/microbundle/
  2. run yarn jest or yarn test
  3. ... jest freezes at startup

Expected behavior

Jest should start and execute tests.

Link to repl or repo (highly encouraged)

Branch upgrade_deps at https://github.com/marvinhagemeister/microbundle/

Run npx envinfo --preset jest

Paste the results here:

$ npx envinfo --preset jest
npx: installed 1 in 1.964s

  System:
    OS: macOS 10.14
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 11.1.0 - ~/.nvm/versions/node/v11.1.0/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v11.1.0/bin/npm
  npmPackages:
    jest: ^23.6.0 => 23.6.0

Most helpful comment

@rickhanlonii Thanks for looking into it. Turned out that watchman wasn't behaving correctly. Simply re-installing it via homebrew fixed it for me. Thanks again for your time :)

All 2 comments

@marvinhagemeister it does not hang for me when following your repo steps - can you run --clear-cache and try again?

@rickhanlonii Thanks for looking into it. Turned out that watchman wasn't behaving correctly. Simply re-installing it via homebrew fixed it for me. Thanks again for your time :)

Was this page helpful?
0 / 5 - 0 ratings