c8
c8 copied to clipboard
output coverage reports using Node.js' built in coverage
* **Version**: 15.5.1 * **Platform**: Linux Symphorien 4.15.0-132-generic #136-Ubuntu SMP Tue Jan 12 14:58:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux * **c8 version**: 7.4.0, run with extension "mjs" * **mocha...
* **Version**: c8 version 7.3.5 + npm --versions { npm: '7.3.0', node: '15.5.0', v8: '8.6.395.17-node.23', uv: '1.40.0', zlib: '1.2.11', brotli: '1.0.9', ares: '1.17.1', modules: '88', nghttp2: '1.41.0', napi: '7', llhttp:...
This... https://github.com/bcoe/c8/blob/a465b65d907b669714cfc3dca949efd667f499c3/bin/c8.js#L32 could possible be replaced by: ```js await fs.fsPromises.rmdir(argv.tempDirectory, { recursive: true }) ``` if not now, then maybe in the feature when you decide to drop support for...
Suppose I'm calling c8 on the commandline: ``` npx c8 --all --exclude npm run test ``` and I want to exclude multiple folders (e.g. `upgrade`, `test`). Based on the documentation...
* **Version**: node v14.8 * **Platform**: windows 10 x64   
When executing this file with c8 I get the coverage information. ```js function run() { if (1) { console.log(1); } else { console.log(2); } } run(); setTimeout(process.exit, 3000) ``` However...
I am having trouble getting ignore rules to work with 1:many source maps. CC: @MoLow
The original [issue logged for ignore rules](https://github.com/bcoe/c8/issues/21) asked for “all of them” but only `c8 ignore next` was added. I didn’t think that was much of a big deal until...
* **Version**: 7.2.0 * **Platform**: linux x86_64 When running `c8` with `mocha` for example, as such: `node node_modules/c8/bin/c8 node_modules/mocha/bin/mocha test.js`, it is not guaranty that the same node binary will...
Consider the code below. ```js const x = 'asdf' const fn = y => { if (typeof y !== 'object') { y = 'yup' } console.log(y) } fn(x) ``` The...