Created by: ricokahler
This is a one-line pull request for https://github.com/facebook/create-react-app/issues/6284. This allows react-scripts test --watch=false
to allow react-scripts to run jest without watch mode.
I tested this out by npm link
ing my local fork to a project created with create-react-app
.
I ran the command npm t -- --watch=false
and jest closed right after everything was ran!
See the gif, when --watch=false
is added, it no longer adds the --watch
: