{"name":"karma-coverage-istanbul-reporter","version":"3.0.1","description":"A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report coverage.","funding":{"url":"https://github.com/sponsors/mattlewis92"},"main":"src/reporter.js","scripts":{"start":"npm run test:watch","lint":"xo","pretest":"npm run lint","test":"nyc mocha","test:watch":"mocha --watch","codecov":"cat coverage/lcov.info | codecov","commit":"git-cz","prerelease":"npm test","release":"standard-version && git push --follow-tags origin master","postrelease":"npm publish"},"repository":{"type":"git","url":"git+https://github.com/mattlewis92/karma-coverage-istanbul-reporter.git"},"keywords":["karma-plugin","karma-reporter","coverage","istanbul","istanbuljs"],"author":{"name":"Matt Lewis"},"license":"MIT","bugs":{"url":"https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues"},"homepage":"https://github.com/mattlewis92/karma-coverage-istanbul-reporter#readme","dependencies":{"istanbul-lib-coverage":"^3.0.0","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","minimatch":"^3.0.4"},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@commitlint/prompt":"^8.3.5","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","chai":"^4.2.0","codecov":"^3.6.5","commitizen":"^4.0.5","coverage-istanbul-loader":"^3.0.3","husky":"^4.2.5","karma":"^5.0.4","karma-mocha":"^2.0.1","karma-phantomjs-launcher":"^1.0.2","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.2","mocha":"^7.1.2","nyc":"^15.0.1","prettier":"^2.0.5","pretty-quick":"^2.0.1","rimraf":"^3.0.2","sinon":"^9.0.2","standard-version":"^7.1.0","ts-loader":"^7.0.2","tslint":"^6.1.2","tslint-loader":"^3.6.0","typescript":"^3.8.3","webpack":"^4.43.0","xo":"^0.30.0"},"nyc":{"reporter":["html","text-summary","lcovonly"]},"xo":{"space":true,"prettier":true,"envs":["node","mocha"],"rules":{"space-before-function-paren":0,"object-curly-spacing":0,"operator-linebreak":0,"indent":0},"ignore":["{test,tests,spec,__tests__}/fixture{s,}/**"]},"config":{"commitizen":{"path":"@commitlint/prompt"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"commit-msg":"commitlint -e","pre-commit":"pretty-quick --staged"}},"mocha":{"timeout":10000},"gitHead":"a50d4e55edaeda210f656462b2469a8c4ef8d6b0","_id":"karma-coverage-istanbul-reporter@3.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DELhddSw2Epj91CdBualCgUFdKBQzXaGNN4kVk+hqM3BLaBxZVaudxx+TKYjbmHGtvnsoe2o6kxkMsJintuHbQ==","shasum":"92ed1e2262ae3bdbfea17a2c5252f585359cbc65","tarball":"http://registry-npm.ywwl.com/karma-coverage-istanbul-reporter/download/karma-coverage-istanbul-reporter-3.0.1.tgz","fileCount":6,"unpackedSize":29814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesCZ1CRA9TVsSAnZWagAAAKIP/1S8MBGPU3SfZfA2gu+3\n6FFgl+BA6rSGgkfJefQ7Yuivs37wGKS2Q7gDagcvoc+cqcOhhrXomgEMVleM\nHlSuyMkAbDnuWDGbw+WQnaoNKEUnEgRbeReUm+/gRhAXBJcqY4xjP/G4rt1S\nN8T8auaylnwMhSK0KELQyXUgWN3W75xmVi0RjlovMqhQjPyLrqgSi7M6HYRb\ns/BI9uZoGpNNC+TQryIQ8xg4qnlkTd+qc1nsX59mr7h1c1ZuVX7pyjmgHCoI\nesZ+OBipfA3BAWtR2CrxYYbGLdL1ISn6kqayoXW+9vaa+B9DwiR7nJ1nyap+\n7/qA+WDQXFtAQD0hCjC23gI+s9bgpvcjoK9XkM9uQuELODFJDaLpcs/TVOHL\nZSc+uSleRyVl/8pKVbie6HiygEieDs539Z8vROZcpaNn7LdNNEwvTPg2Lihy\n3Z85aeQxjuFvYFApKQylqgJoHuOoCeA/PDOxl7KznYbtvVUzcNzCKIbUHALQ\np1KuYMJGWTAn0L+Q6pnBA6ljHhmeccm/ldx0VKsNLmB9qNh+uKNpUvkkegsd\n+1RBWKtEGgkFFZ2/x9HzCx3/HKhFmCz8flof958eoigGYvsIEwlmMFKiX8bP\nK9tcwAF51DvG5WL8MbH2VCMvcPPHVDOS/A09y/kJSIEM63GfodqexXiJN4pe\nTEya\r\n=tCg4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5FEX5K2rm5Wu1OwYFiHTZV2jq8FrDqhxfyYyYFcA9WAiEA2ivQA1C836fahDuES67WX61FEmMtiwHtZEEXS2suM/0="}],"size":8297,"noattachment":false,"key":"/karma-coverage-istanbul-reporter/-/karma-coverage-istanbul-reporter-3.0.1.tgz"},"maintainers":[{"name":"mattlewis92","email":"matthew.lewis@socialsignin.co.uk"}],"_npmUser":{"name":"mattlewis92","email":"npm@mattlewis.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-coverage-istanbul-reporter_3.0.1_1588602485457_0.4796268712604881"},"_hasShrinkwrap":false,"readme":"# karma-coverage-istanbul-reporter\n\n[![Sponsorship](https://img.shields.io/badge/funding-github-%23EA4AAA)](https://github.com/users/mattlewis92/sponsorship)\n[![Build Status](https://travis-ci.org/mattlewis92/karma-coverage-istanbul-reporter.svg?branch=master)](https://travis-ci.org/mattlewis92/karma-coverage-istanbul-reporter)\n[![codecov](https://codecov.io/gh/mattlewis92/karma-coverage-istanbul-reporter/branch/master/graph/badge.svg)](https://codecov.io/gh/mattlewis92/karma-coverage-istanbul-reporter)\n[![npm version](https://badge.fury.io/js/karma-coverage-istanbul-reporter.svg)](http://badge.fury.io/js/karma-coverage-istanbul-reporter)\n[![npm](https://img.shields.io/npm/dm/karma-coverage-istanbul-reporter.svg)](http://badge.fury.io/js/karma-coverage-istanbul-reporter)\n[![Twitter Follow](https://img.shields.io/twitter/follow/mattlewis92_.svg)](https://twitter.com/mattlewis92_)\n\n> A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report coverage.\n\n## About\n\nThis is a reporter only and does not perform the actual instrumentation of your code. Babel users should use the [istanbul babel plugin](https://github.com/istanbuljs/babel-plugin-istanbul) to instrument your code and webpack + typescript users should use the [coverage-istanbul-loader](https://github.com/JS-DevTools/coverage-istanbul-loader) and then use this karma reporter to do the actual reporting. See the [test config](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/blob/master/test/karma.conf.js) for an e2e example of how to combine them.\n\n## Installation\n\n```bash\nnpm install karma-coverage-istanbul-reporter --save-dev\n```\n\n## Configuration\n\n```js\n// karma.conf.js\nconst path = require('path');\n\nmodule.exports = function(config) {\n  config.set({\n    // ... rest of karma config\n\n    // anything named karma-* is normally auto included so you probably dont need this\n    plugins: ['karma-coverage-istanbul-reporter'],\n\n    reporters: ['coverage-istanbul'],\n\n    coverageIstanbulReporter: {\n      // reports can be any that are listed here: https://github.com/istanbuljs/istanbuljs/tree/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib\n      reports: ['html', 'lcovonly', 'text-summary'],\n\n      // base output directory. If you include %browser% in the path it will be replaced with the karma browser name\n      dir: path.join(__dirname, 'coverage'),\n\n      // Combines coverage information from multiple browsers into one report rather than outputting a report\n      // for each browser.\n      combineBrowserReports: true,\n\n      // if using webpack and pre-loaders, work around webpack breaking the source path\n      fixWebpackSourcePaths: true,\n\n      // Omit files with no statements, no functions and no branches covered from the report\n      skipFilesWithNoCoverage: true,\n\n      // Most reporters accept additional config options. You can pass these through the `report-config` option\n      'report-config': {\n        // all options available at: https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/html/index.js#L257-L261\n        html: {\n          // outputs the report in ./coverage/html\n          subdir: 'html'\n        }\n      },\n\n      // enforce percentage thresholds\n      // anything under these percentages will cause karma to fail with an exit code of 1 if not running in watch mode\n      thresholds: {\n        emitWarning: false, // set to `true` to not fail the test command when thresholds are not met\n        // thresholds for all files\n        global: {\n          statements: 100,\n          lines: 100,\n          branches: 100,\n          functions: 100\n        },\n        // thresholds per file\n        each: {\n          statements: 100,\n          lines: 100,\n          branches: 100,\n          functions: 100,\n          overrides: {\n            'baz/component/**/*.js': {\n              statements: 98\n            }\n          }\n        }\n      },\n\n      verbose: true // output config used by istanbul for debugging\n    }\n  });\n};\n```\n\n### List of reporters and options\n\n- [clover](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/clover/index.js#L14-L15)\n- [cobertura](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/cobertura/index.js#L16-L17)\n- [html-spa](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/html-spa/index.js#L47-L61)\n- [html](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/html/index.js#L257-L261)\n- [json-summary](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/json-summary/index.js#L12)\n- [json](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/json/index.js#L12)\n- [lcov](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/lcov/index.js#L13)\n- [lcovonly](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/lcovonly/index.js#L11-L12)\n- none\n- [teamcity](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/teamcity/index.js#L13-L14)\n- [text-lcov](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/text-lcov/index.js#L11)\n- [text-summary](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/text-summary/index.js#L13)\n- [text](https://github.com/istanbuljs/istanbuljs/blob/73c25ce79f91010d1ff073aa6ff3fd01114f90db/packages/istanbul-reports/lib/text/index.js#L231-L237)\n\n## Credits\n\n- [Original karma-coverage source](https://github.com/karma-runner/karma-coverage/blob/master/lib/reporter.js)\n- [Example of using the new reporter API](https://github.com/facebook/jest/blob/master/scripts/mapCoverage.js)\n- [Karma remap istanbul](https://github.com/marcules/karma-remap-istanbul)\n\n## License\n\nMIT\n","publish_time":1588602485579,"_cnpm_publish_time":1588602485579,"dist-tags":{"latest":"3.0.3","next":"3.0.1"}}