Yes.
A newly generated app hangs indefinitely on npm test.
The App.test.js file test should run.
The test process hangs.
Run these commands in the project folder and fill in their results:
npm ls react-scripts (if you haven’t ejected):
[email protected] /Users/stephen/Developer/playground
└── [email protected]
node -v:
v6.9.1
npm -v:
3.10.9
Then, specify:
If need be I can attach a demo, though I assume I would need to recursively remove the .gitignores and commit the modules?
Steps to reproduce for me every time:
create-react-app playground
cd playground
npm test
Sorry you're having issues.
Do any suggestions in https://github.com/facebook/jest/issues/1767 help?
brew uninstall watchman did the trick. Should I file a bug there?
Just chiming in for anyone running into this problem, I ran into this same issue. Uninstalling watchman fixed the problem, though installing watchman again reintroduced the problem. The underlying problem (for me atleast) is detailed in https://github.com/facebook/watchman/issues/358 and is related to corrupted state.
tl;dr try running launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist, which should hopefully fix running tests (npm test) with watchman installed!
Getting the same error, uninstalling then installing watchman with brew fixed the problem here.
launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist fixed the problem for me
Hi guys I am experiencing this issue as well. Can i get some help on how to resolve this on windows 10?
Can you please file a new issue with a reproducing example? I don’t think the known issues were reproducible on Windows, so this might be a different problem.
Does create-react-app on OSX expect to have watchman installed? Should brew install watchman be documented as requirement in the readme.md?
This is going to be fixed with https://github.com/amasad/sane/pull/97.
Closing in favor of https://github.com/facebookincubator/create-react-app/issues/2639.
For anyone having this problem on macOS, this is a workaround that allows you to run the tests once without the broken watcher:
CI=true npm test
or
CI=true yarn test
Most helpful comment
Just chiming in for anyone running into this problem, I ran into this same issue. Uninstalling
watchmanfixed the problem, though installingwatchmanagain reintroduced the problem. The underlying problem (for me atleast) is detailed in https://github.com/facebook/watchman/issues/358 and is related to corrupted state.tl;dr try running
launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist, which should hopefully fix running tests (npm test) withwatchmaninstalled!