Jest: yarn run test not working

Created on 14 Nov 2016  路  5Comments  路  Source: facebook/jest

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

bug

What is the current behavior?

yarn run test stalled, instead of running tests.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can npm install and npm test.

Using this example project, steps to reproduce:

$ yarn install
$ yarn run test

Seeing

> @ test /Users/user/jest/examples/react
> jest

then the program stalled.

What is the expected behavior?

It should run the test.

Run Jest again with --debug and provide the full configuration it prints. Please mention your node and npm version and operating system.

Same as above.

Most helpful comment

Good catch! brew remove watchman did the trick, thanks for pointing out the right direction! 馃憤

Ps. I'm on OSX 10.11.6, not Sierra.

All 5 comments

Does it work with npm test? I don't think this is a Jest issue. Which version of Jest are you using?

Closing because I think this is not Jest's fault. Happy to help out resolve this issue though and reopen it if it turns out to be a Jest issue.

Tried npm test, same result.

jest-cli: 17.0.1, installed locally
yarn: 0.16.1
npm: 3.10.9
node: 7.1.0

What's funny is, $(npm bin)/jest --help works, but $(npm bin)/jest -v stalled too! Is there anyway I could see logging or debugging info?

That's odd. Do you have watchman installed and are you on Mac OS Sierra? Can you check the bottom of #1767?

Good catch! brew remove watchman did the trick, thanks for pointing out the right direction! 馃憤

Ps. I'm on OSX 10.11.6, not Sierra.

Was this page helpful?
0 / 5 - 0 ratings