"--watch not supported without git/hg" when running with no pattern
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior? Run tests with ‘watchAll’, hit ‘p’ to enter a pattern, hit ‘return’ with no pattern, get error and exit: “–watch is not supported without git/hg, please use --watchAll”
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
.
Make sure there is not git/hg file. Load any tests in watchAll mode with watchman. Same steps as above.
What is the expected behavior? As per Jest v20, should re-run all tests with original command (watchAll).
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest: 22.4.2 Node: 8.9 Yarn: 1.3.2 MacOS
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
you need execute
git init
. Works for meYes it is, mine isn’t running in docker though. Probably why I couldn’t find that issue when I searched.