question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"--watch not supported without git/hg" when running with no pattern

See original GitHub issue

Do 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”

screenshot

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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
yasser17commented, Jun 11, 2018

you need execute git init. Works for me

1reaction
alexgurrcommented, Mar 5, 2018

Yes it is, mine isn’t running in docker though. Probably why I couldn’t find that issue when I searched.

Read more comments on GitHub >

github_iconTop Results From Across the Web

watch is not supported without git/hg" with cygwin jest and git
I have installed git and node in windows. I have found a workaround of using the Command Prompt for running the tests, but...
Read more >
Jest issue: --watch is not supported without git/hg, please use
Current Behavior​​ I get this output when running razzle test without --watchAll ( $ razzle test ): Determining test suites to run... --watch...
Read more >
Jest CLI Options
Run only the tests that were specified with a pattern or filename: ... Run tests related to changed files based on hg/git (uncommitted...
Read more >
Jest CLI Options - GitHub Pages
--watch. Watch files for changes and rerun tests related to changed files. If you want to re-run all tests when a file has...
Read more >
9.1 Git and Other Systems - Git as a Client
To push to a Subversion server, you run the git svn dcommit command: ... but are working with a project whose source code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found