How set up test code coverage with different test levels?
<p>I'm using <a href="http://npmjs.com/nyc" rel="nofollow noreferrer">nyc</a> for generating Code coverage reports. I use different levels for my tests. How I can merge reports from different levels?</p>

<p>There is my part of my package.json</p>

<pre><code>"scripts": {
  "test": "npm run test:unit &amp;&amp; npm run test:component",
  "test:component": "nyc mocha ./test/component",
  "test:unit": "nyc mocha ./test/unit"
},
"nyc":     {
  "extension": [
    ".ts"
  ],
  "cache": true,
  "reporter": [
    "lcov",
    "text-summary"
  ]
}
</code></pre>