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.

Support Jest's --watchAll

See original GitHub issue

Jest, at least the version that react-scripts depends on, does not work with both the --watch and --watchAll flags.

Since react-scripts is automatically adding the --watch flag, that means no user would ever be able to do --watchAll.

Either upgrading Jest or fixing this logic would solve the issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Jan 15, 2018

Merged a fix in https://github.com/facebookincubator/create-react-app/pull/3804. Will be out in 2.x beta.

1reaction
gaearoncommented, Jan 15, 2018

Yes, but in watch mode, after the initial run you can press ‘a’ to trigger a “watchAll” run.

Yea, IMO this is enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest CLI Options
The jest command line runner has a number of useful options. You can run jest --help to view all available options. Many of...
Read more >
Jest CLI Options - GitHub Pages
You can run jest --help to view all available options. Many of the options shown ... jest --watch #runs jest -o by default...
Read more >
Watch and rerun Jest JS tests - npm - Stack Overflow
Thanks to Erin Stanfill for pointing out, Jest already has support for automatically re-running. The better configuration for package.json would be
Read more >
Jest CLI Options - w3resource
To view all the available options, you can run jest ?help. Most of the options that are shown below can also be used...
Read more >
Option to run always with --watchAll instead of --watch #558
Environment node -v: v12.13.1 npm -v: 6.13.6 Operating system: macOS Mojave Prerequisite are you able to run jest test from command line?
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