title: Jest coverage reporting on all committed files in create-react-app
body: <p>Having difficulty with generating Jest coverage reports for all committed files in my create-react-app.</p>
  <p>Initially, code coverage was generating as expected, however something has changed in my environment, and now only files changed since the last commit are showing coverage.</p>
  <p>I see there are many other posts about this issue, however I am unable to resolve it myself.</p>
  <p>package.json:</p>
  <pre><code>{...
      &quot;devDependencies&quot;: {
          &quot;@testing-library/jest-dom&quot;: &quot;^5.11.9&quot;,
          &quot;@testing-library/react&quot;: &quot;^11.2.5&quot;,
          &quot;@testing-library/user-event&quot;: &quot;^12.6.3&quot;,
          &quot;react-test-renderer&quot;: &quot;^17.0.1&quot;
      },
      &quot;jest&quot;: {
          &quot;testMatch&quot;: [ &quot;**/tests/**/*.[jt]s?(x)&quot;, &quot;**/?(*.)+(spec|test).[jt]s?(x)&quot; ],
          &quot;coverageReporters&quot;: [&quot;json&quot;,&quot;html&quot;,&quot;lcov&quot;, &quot;text&quot;]
      }
  ...}
  </code></pre>
  <p>Project structure:</p>
  <pre><code>|
  +--node_modules
  +--src
      |
      + __tests__
      + App.js
  - package.json
  </code></pre>
  <p>Running command <code>npm test -- --coverage</code> produces the following output:</p>
  <pre><code>No tests found related to files changed since last commit.
  Press `a` to run all tests, or run Jest with `--watchAll`.
  ----------|---------|----------|---------|---------|-------------------
  File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
  ----------|---------|----------|---------|---------|-------------------
  All files |       0 |        0 |       0 |       0 |                   
  ----------|---------|----------|---------|---------|-------------------
  
  Watch Usage
   › Press a to run all tests.
   › Press f to run only failed tests.
   › Press q to quit watch mode.
   › Press p to filter by a filename regex pattern.
   › Press t to filter by a test name regex pattern.
   › Press Enter to trigger a test run.
  </code></pre>