title: How to exclude spec files while getting code coverage [Angular]
body: <p>I'm trying to get the code coverage of my angular project. I'm not very well versed with the tools. I decided to use <code>"istanbul-instrumenter-loader": "^3.0.1"</code>. I tried taking help from this question:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/42241654/angular-cli-exclude-files-directory-for-ng-test-code-coverage">angular cli exclude files/directory for <code>ng test--code-coverage</code></a> and</li>
  <li><a href="https://stackoverflow.com/questions/38473025/regex-that-doesnt-match-spec-ts-and-spec-tsx-but-should-match-any-other-ts-and">Regex that doesn't match spec.ts and spec.tsx but should match any other .ts and .tsx</a></li>
  </ol>
  
  <p>And many other solutions given on the same thread. My problem is that I want to exclude spec files which I wrote for unit testing. Here is the screenshot of what I'm getting:
  <a href="https://i.stack.imgur.com/5FXWj.png" rel="noreferrer">screenshot</a>.
  Please correct my mistake and feel free to ask for missing information.</p>