Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
(This is in 21.3.0-beta.2)
Running jest --watch
on a clean repo prints:
No tests found related to files changed since last commit.
Press `a` to run all tests, or run Jest with `--watchAll`.
then exits with status 1.
See #3672. /cc @EnoahNetzach
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
.
This can be reproduced in the jest repo itself on current master. Make sure to have a clean working directory, run ./jest --watch
and it will instantly exit.
What is the expected behavior?
passWithNoTests
should be set to true
(or just ignored) when running in watch mode so that the watcher runs even if there are no tests to run.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
[email protected]
, [email protected]
, [email protected]