title: Running CRA Jest in non-interactive mode
body: <p><strong>Update: my use case is mainly to run tests at CI, but overriding default CRA Jest parameters is something I'm generally wondering about.</strong></p>
  
  <hr>
  
  <p>I'm running tests using the <a href="https://facebook.github.io/jest/" rel="noreferrer">Jest</a>, config that came with <a href="https://github.com/facebookincubator/create-react-app" rel="noreferrer">Create React App</a>. It always launches into the interactive mode:</p>
  
  <pre><code> › Press a to run all tests.
   › Press o to only run tests related to changed files.
   › Press p to filter by a filename regex pattern.
   › Press q to quit watch mode.
   › Press Enter to trigger a test run.
  </code></pre>
  
  <p>But I don't want it to wait for my input. I want it to run once and then terminate. I tried using the <code>--bail</code> or <code>--no-watchman</code> switches but it still launches in interactive mode.</p>
  
  <p>If I globally install <code>jest</code>, and run it in the root of my project, it executes once and finish (just as I want). But when I run <code>npm test</code> which runs <code>react-scripts test</code>, it goes into the watch mode even when I'm not passing <code>--watch</code>.</p>
  
  <p>Update: I've also filed an issue on <a href="https://github.com/facebookincubator/create-react-app/issues/784" rel="noreferrer">CRA</a>.</p>