title: Run Create-React-App Tests not in Watch Mode
body: <p>I have a project created using Create-React-App. I am looking to add in a <code>precommit</code> hook to run our linter and tests with the <code>pre-commit</code> package.</p>
  
  <pre><code>"pre-commit": [
    "precommit-msg",
    "lint",
    "test"
  ],
  </code></pre>
  
  <p>However, since the test script runs by default in watch mode, this prevents the commit from ever actually happening. How can add the tests not in watch move in the pre-commit?</p>