jest: Tests not running
I went through getting started but can’t get jest to work. I use node v6.9.1, npm v3.10.8 and jest v17.0.3. I also tried --no-cache
and --debug
but nothing changes. I even moved test to __tests__
dir and renamed it accordingly.
Do you want to request a feature or report a bug?
- bug
What is the current behavior?
- no output, seems like no tests are being ran
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
.
https://github.com/zigomir/jester
What is the expected behavior?
Test running and passing.
Run Jest again with --debug
and provide the full configuration it prints. Please mention your node and npm version and operating system.
Still nothing.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (3 by maintainers)
Commits related to this issue
- Attempt to run Cors functional tests with watchman disabled. According to https://github.com/facebook/jest/issues/2219, jest will not run tests if watchman is installed. It is not entirely clear if t... — committed to dotnet/aspnetcore by pranavkm 5 years ago
- Attempt to run Cors functional tests with watchman disabled. (#7076) According to https://github.com/facebook/jest/issues/2219, jest will not run tests if watchman is installed. It is not entirely c... — committed to dotnet/aspnetcore by pranavkm 5 years ago
I figured out jest won’t run if i have
watchman
installed. As soon as I remove it withbrew uninstall watchman
it works.I was able to find this out running
node_modules/jest/bin/jest.js
instead ofnpm test
and iTerm2 printed outwatchman
in tab title 😃Can you please check if this is the case, I see https://github.com/facebook/watchman is Facebook’s repo too 😉
An easy solution to run the tests is with
--no-watchman
parameter. E.g. yarn test --u --no-watchmanAnother Mac OS user here that got bit by this issue, uninstalling
watchman
allows Jest to run tests.Thanks @cpojer! Yeah this is certainly related to my issue. So stopping watchman with
launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist
orbrew uninstall watchman
resolves issue for me. This works for me, glad to be able to use jest now 😃I have watchman installed too (v4.5.0). Probably there was an issue with the version you’ve been using. Would be great if you installed newer version and try it once more 😃