title: Jest get total line coverage (for gitlab badge)
body: <p>I have seen that you could use GitLab to <a href="https://gitlab.com/help/user/project/pipelines/settings.md#test-coverage-report-badge" rel="nofollow noreferrer">generate a badge icon</a> on the fly for code coverage. Therefore, in one of the CI jobs, there must be <a href="https://gitlab.com/help/user/project/pipelines/settings.md#test-coverage-parsing" rel="nofollow noreferrer">a regex pattern found</a>.</p>
  
  <p>I have a react project that uses jest for testing. I see that you could use the <code>--coverage</code> parameter, this outputs the following:</p>
  
  <pre><code> PASS  __tests__/App-test.js
    ✓ renders correctly (631ms)
  
  ----------|----------|----------|----------|----------|-------------------|
  File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
  ----------|----------|----------|----------|----------|-------------------|
  All files |      100 |       50 |      100 |      100 |                   |
   App.js   |      100 |       50 |      100 |      100 |                36 |
  ----------|----------|----------|----------|----------|-------------------|
  Test Suites: 1 passed, 1 total
  Tests:       1 passed, 1 total
  Snapshots:   0 total
  Time:        2.46s
  Ran all test suites.
  </code></pre>
  
  <p>Unfortunately, that doesn't provide me with a total number that I could use to satisfy GitLab's regex pattern. </p>
  
  <p>My googling gave me no conclusion on how to output a total coverage percentage. </p>
  
  <p>Any help would be appreciated, thank you so much. </p>