{"_id":"karma-istanbul-threshold","_rev":"74-7b0fb43e2d92d24c064aaab89754944b","name":"karma-istanbul-threshold","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"karma-istanbul-threshold","version":"1.0.0","keywords":["karma","coverage","threshold","remap","istanbul","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.0.0","maintainers":[{"name":"Daniel Schäfer","email":"epegzz@gmail.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"5538d8937772dec8ab8e5250df6e7ca406ee7043","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.0.0.tgz","integrity":"sha512-jRbplMLeh10nVaTKT0shMFF+7lqjuZky9OM6uQxXbNTwDTUPUZvQQFtFyIYym5fVgfKMZ8TgSfQEhU28Qd1now==","signatures":[{"sig":"MEUCIQDMm9YVlpIjqSbFZLTD4nU2ydtL2i3FVqH7mM+MU70ldgIgINIau05QRMjomsz2cNiUhMoiGTqgeMTDOYf+C+knVyE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"_shasum":"5538d8937772dec8ab8e5250df6e7ca406ee7043","gitHead":"731fd87d3a03dea800d5c28a5d9003ec65d13996","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.8.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"5.10.1","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4","istanbul-threshold-checker":"^0.1.0"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.0.0.tgz_1470914561100_0.6648002751171589","host":"packages-12-west.internal.npmjs.com"}},"1.0.3":{"name":"karma-istanbul-threshold","version":"1.0.3","keywords":["karma","coverage","threshold","remap","istanbul","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.0.3","maintainers":[{"name":"titelmedia","email":"dev@highsnobiety.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"bbe297839392fe69e9b0d327fedd6c377bd1f3d6","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.0.3.tgz","integrity":"sha512-PVaa9InsKRLcQd408SztZMm152Ctp9/z46v4UVqjTIBd2mFJ/1ZPAeOJ21lR+/zx/zxWuciXbmNjG0Gc4+l1jA==","signatures":[{"sig":"MEQCIDVb5Gi86ti5pbjlS3PQixCa2SKJWrqO3NXht3XGX245AiA+1vg5ZOcW2yuIQuKEDao91VYUmUJ5DRcTFZIDWkv41g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"engine":"node 6.0.0","_shasum":"bbe297839392fe69e9b0d327fedd6c377bd1f3d6","gitHead":"ff5b2159fa0aa7d712a7018ecf45fd5a946c670e","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.8.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"5.10.1","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.0.3.tgz_1470991862121_0.9951252199243754","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"karma-istanbul-threshold","version":"1.1.0","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.1.0","maintainers":[{"name":"titelmedia","email":"dev@highsnobiety.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"ec0add6ea43a882142bca1a15854a9f018a7b84a","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.1.0.tgz","integrity":"sha512-p3c9rqSXwo0M4lYqzK5gbmoV46VAjUN2bVEUBzua9/zsn4lepuMG98ItgFbK7t7iKnG923ZB2oeMIKroQqSikw==","signatures":[{"sig":"MEQCICc7vVaHAawWmYMLtzmD8OYsOkKzbnxuPu/+fXyj4LGxAiAFAsqIKwa4o0mStaIAERIq+xSCvGR0EA7hAlMTiOX9Ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"engine":"node 4.0.0","_shasum":"ec0add6ea43a882142bca1a15854a9f018a7b84a","gitHead":"8a04252381658abdafb4fd4c1352325dada632cb","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.10.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"6.3.0","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.1.0.tgz_1472910069828_0.48912299354560673","host":"packages-16-east.internal.npmjs.com"}},"1.2.0":{"name":"karma-istanbul-threshold","version":"1.2.0","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.2.0","maintainers":[{"name":"titelmedia","email":"dev@highsnobiety.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"903633aac092e03f05e3701de0e2e4c4011d0e54","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.2.0.tgz","integrity":"sha512-MjWEPTP3goTrkaNbSm/rC0Nvhuv1q0ENYQ3uVIklDRyYEMExKpRgx43yOmSTRq+00aMJtv1ugmglzuXnGrhO0w==","signatures":[{"sig":"MEQCIDTObZGtOPzPWQZm1MDT5BW0fbZhYafZMSKeff+04s0GAiAsbtrKpmse5msKSY23OVsjI4TEbdvGmlacRs+ABluVdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"engine":"node 4.0.0","_shasum":"903633aac092e03f05e3701de0e2e4c4011d0e54","gitHead":"e89e0a12ed127a2e6d8dc6f3ceb84fbe0f68c986","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.10.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"6.3.0","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.2.0.tgz_1472914191584_0.3394264695234597","host":"packages-16-east.internal.npmjs.com"}},"1.2.1":{"name":"karma-istanbul-threshold","version":"1.2.1","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.2.1","maintainers":[{"name":"titelmedia","email":"dev@highsnobiety.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"53f06989de790999b6f5b86612ae60259243bc97","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.2.1.tgz","integrity":"sha512-6Ad8v+uAtus+dyyhYH+TQK4qtG9DIXSc1VT9voidyuGiO4DlR8xJHT1+qHpWIaQ0NHHVz4QNh1dUIzA/PIS0GQ==","signatures":[{"sig":"MEYCIQCLvTMjehuGAG3/cMepgHJJZnVG4tX8+Ho2i/O3z/12iwIhAOE2JnObMETXXmVHA0HkqAbX5IMnlAINtH0mDcwoajn4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"engine":"node 4.0.0","_shasum":"53f06989de790999b6f5b86612ae60259243bc97","gitHead":"ef739025280fced0958ef20389977185eb095b32","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.10.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"6.3.0","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4","minimatch":"^3.0.3"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.2.1.tgz_1472916111903_0.03497227327898145","host":"packages-16-east.internal.npmjs.com"}},"1.2.2":{"name":"karma-istanbul-threshold","version":"1.2.2","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.2.2","maintainers":[{"name":"titelmedia","email":"dev@highsnobiety.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"71645e0126fdb790de2865c9585a79295ecb17fb","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.2.2.tgz","integrity":"sha512-tJM0aJZlcxYNtwbUyJgAaXcZyRkdO6++rswXPFbSNx41eaN5/zm+JDAxw74zX9PN9k/zu6n53+YlWKzwMvvuBg==","signatures":[{"sig":"MEUCIQChhubcjejSKnuhdYpvpKl7+RI/B6KAYsAc4Uhrm5XxzgIgOrRPVVtt88LKD60BQ0BvlLdTJB7WfZUKijALUBJK2TI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","lib.js"],"engine":"node 4.0.0","_shasum":"71645e0126fdb790de2865c9585a79295ecb17fb","gitHead":"b7dac2ff02ff26cbe62e4b74811ca3013c792878","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"3.10.3","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"6.3.0","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^1.6.0","istanbul":"^0.4.4","minimatch":"^3.0.3"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold-1.2.2.tgz_1475053802379_0.7454952218104154","host":"packages-16-east.internal.npmjs.com"}},"1.2.3":{"name":"karma-istanbul-threshold","version":"1.2.3","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"author":{"name":"dev@highsnobiety.com"},"license":"ISC","_id":"karma-istanbul-threshold@1.2.3","maintainers":[{"name":"apfelfabrik","email":"martin.czuchra@googlemail.com"},{"name":"avery","email":"avery.lim@highsnobiety.com"},{"name":"dazlious","email":"mduve@designmail.net"},{"name":"jbhsnb","email":"jesse.bordoe@highsnobiety.com"},{"name":"jortizsao","email":"javier.ortizsaorin@gmail.com"},{"name":"matchs","email":"mateuschs@gmail.com"},{"name":"nynkelys","email":"n-deboer@outlook.com"},{"name":"outisfun","email":"katerina.vsv@gmail.com"},{"name":"overbryd","email":"npm@overbryd.33mail.com"},{"name":"oxionsg","email":"oxinosg@gmail.com"},{"name":"ppciesiolkiewicz","email":"ppciesiolkiewicz@gmail.com"},{"name":"rr235","email":"rash235r@gmail.com"},{"name":"simba14","email":"seanblundell@gmail.com"},{"name":"titelmedia-admin","email":"dev@highsnobiety.com"},{"name":"zitegeist","email":"james.oneill96@gmail.com"}],"homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"dist":{"shasum":"9a8dc55300cc67de05005767061084fe77792311","tarball":"https://registry.npmjs.org/karma-istanbul-threshold/-/karma-istanbul-threshold-1.2.3.tgz","fileCount":4,"integrity":"sha512-jtAtKM9rSJ0CLRgF2D4VN1Qd245c8j6qxJHMUOL2++C6znqE3nmKk88kTlZiC+XpHypUhxZCgB0NUhNpmy/crg==","signatures":[{"sig":"MEYCIQCoqZAsUZIGSP3jh3kSngjtysGxkUVB7zbiqTC9dal1bgIhALRYqOn+AVPvU942K+2BPlAi/Dxuo6f7tPYHOIu1Abcg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2xBfCRA9TVsSAnZWagAASPUP/imv709megA91BIACpIp\nBco3WpbmW/3ucxPs1OUUwhO3aRYWA4U9yM9SZkkND//pECZ1GcrA1iIMEV79\nm0MiEDEKE5jZ8Lq2FSFi00dCBHHqvxcuzQK/Kf9o0xwHnGdNWFWfhVa0YrYP\nKBzFF70tcn1qKT1W0UzelejqWfoumm0M1WRu+EtgZo/0ZSsvNyTXgPpE0Nm4\nWtoE0cPusUH6nU7lTQCoZnE7EFSQKDRByuTajTeUogY6V/cWESVn1sY4LDis\n5LuLIU6sLxvvHbfZ/b2rOdyybnnC3iR5foITUNzNcIoxVJnCsfmcA6hoHC7k\nvUQKyrIZfj5/qwler/fqm3WGaw8VdgQ2iVz5+QIC5tCiG9aC7Fp1mzi7yQTF\nO0o+D+mG6aRGXGZvnkkEYUjEnblrVtsgBGJ4YO5yXLwNMvfxWtOGZGEZeIZW\ntbSPEV8nnW9C8/jr/Zj9chYvFuXZTOj4DKx0H8e/jNaQOxTzPMUaC1wpXYlT\n0sxiR3A21IrrRWm6pAHaCM/kifrJzBRdYb+wCJ9yAScMA8EmIfPy9lAMMhU6\nbtFsHHWgRLzrIKCeJREPwY4cJb5w/DIsQVCPrgar/FC20c45DquZ/cGDCE5D\nQEYUhW8aXZ/BpOSd2XPgdqEBqFAsmBDBFbC3xncE4Ok8rFuWKgQQqGh+w6pd\njQhr\r\n=cdGw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":"node 4.0.0","gitHead":"3652e479f239a00aea19ef547e68a365d128b44b","scripts":{"test":"mocha test.js"},"_npmUser":{"name":"titelmedia-admin","email":"dev@highsnobiety.com"},"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"_npmVersion":"6.12.0","description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","directories":{},"_nodeVersion":"12.13.0","dependencies":{"fs":"0.0.2","chalk":"^1.1.3","lodash":"^4.14.2","chokidar":"^3.1.1","istanbul":"^0.4.4","minimatch":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","mocha":"^6.2.1"},"_npmOperationalInternal":{"tmp":"tmp/karma-istanbul-threshold_1.2.3_1574767593285_0.1821784160010238","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-08-11T11:22:42.914Z","modified":"2026-03-19T12:31:56.041Z","1.0.0":"2016-08-11T11:22:42.914Z","1.0.3":"2016-08-12T08:51:03.891Z","1.1.0":"2016-09-03T13:41:12.106Z","1.2.0":"2016-09-03T14:49:53.982Z","1.2.1":"2016-09-03T15:21:54.260Z","1.2.2":"2016-09-28T09:10:03.053Z","1.2.3":"2019-11-26T11:26:33.402Z"},"bugs":{"url":"https://github.com/titel-media/karma-istanbul-threshold/issues"},"author":{"name":"dev@highsnobiety.com"},"license":"ISC","homepage":"https://github.com/titel-media/karma-istanbul-threshold#readme","keywords":["karma","coverage","threshold","remap","istanbul","teamcity","reporter","sourcemaps"],"repository":{"url":"git+https://github.com/titel-media/karma-istanbul-threshold.git","type":"git"},"description":"Karma reporter that checks coverage thresholds with coverage data generated by karma-coverage. Because it reads its data from a json file, it can also handle remapped coverage data provided by karma-remap-istanbul to allow source-map support.","maintainers":[{"email":"dev@highsnobiety.com","name":"titelmedia-admin"},{"email":"mduve@designmail.net","name":"dazlious"},{"email":"mariamart.berlin@gmail.com","name":"mariagluck"},{"email":"buero@nanonansen.de","name":"nanonansen2"},{"email":"stellafangg@gmail.com","name":"stellafang"},{"email":"rameezh88@gmail.com","name":"sanehussain"},{"email":"belen.jones@highsnobiety.com","name":"belenjones"},{"email":"martin.czuchra@googlemail.com","name":"apfelfabrik"}],"readme":"# karma-istanbul-threshold\n\n[![Build Status](https://travis-ci.org/titel-media/karma-istanbul-threshold.svg?branch=master)](https://travis-ci.org/titel-media/karma-istanbul-threshold)\n\nChecks coverage thresholds by using json coverage files generated by\n[Istanbul](https://github.com/gotwarlost/istanbul), \n[karma-coverage](https://github.com/karma-runner/karma-coverage) or\n[karma-remap-istanbul](https://github.com/marcules/karma-remap-istanbul).\n\nWhile [karma-coverage](https://github.com/karma-runner/karma-coverage) already allows\nthreshold checks, it unfortunately does not play well with source maps.\n\n[karma-remap-istanbul](https://github.com/marcules/karma-remap-istanbul) can convert\nresults generated by [karma-coverage](https://github.com/karma-runner/karma-coverage)\nbut does not offer threshold checking.\n\nThis plugin fills that gap by using a json file for threshold checking that can be generated\nby Istanbul or karma-coverage (which internally uses Istanbul). Those json files can be remapped\nby karma-remap-istanbul to enable source-map support for threshold checking.\n \n\n![](screenshot.png)\n\n## Installation\n\nThe easiest way is to install `karma-istanbul-threshold` as a `devDependency`,\nby running\n\n```bash\nnpm install karma-istanbul-threshold --save-dev\n```\n\n## Configuration\n\nAdd the plugin, reporter and reporter configuration in your `karma.conf.js`.\n\n```js\n{\n  plugins: ['karma-istanbul-threshold'],\n  reporters: ['progress', 'karma-istanbul-threshold'],\n  istanbulThresholdReporter: {\n    src: 'path/to/coverage-report.json',\n    basePath: path.resolve(__dirname, 'path/to/source'),\n    reporters: ['text'], // use 'text' reporter to get text reports like in the screenshot \n    //reporters: ['teamcity'],  // use 'teamcity' reporter to generate output for teamcity\n    excludes: [\n      'some/module/*.ts' // will exclude .ts files in `path/to/source/some/module`\n    ],\n    thresholds: {\n      global: {\n        statements: 90,\n        branches: 90,\n        lines: 70,\n        functions: 90,\n      },\n      each: {\n        statements: 80,\n        branches: 80,\n        lines: 60,\n        functions: 80,\n      },\n    },    \n  }\n}\n```\n\n### Example configuration with `karma-coverage` and `karma-remap-istanbul`\n```js\n{\n  preprocessors: {\n    'build/**/!(*spec).js': ['coverage']\n  },\n  plugins: ['karma-remap-istanbul', 'karma-coverage', 'karma-istanbul-threshold'],\n  reporters: ['progress', 'coverage', 'karma-remap-istanbul', 'istanbul-threshold'],\n  // Creates coverage reports and stores as json\n  coverageReporter: {\n    reporters: [\n      { type: 'json', dir: 'tmp/coverage', subdir: '.', file: 'coverage-unmapped.json' }\n    ],\n  },\n  // Creates a source-mapped version of coverage report  \n  remapIstanbulReporter: {\n    src: 'tmp/coverage/coverage-unmapped.json',\n    reports: {\n      'json': 'tmp/coverage/coverage-mapped.json'\n    },\n  },\n  // Uses source-mapped version to check coverage thresholds\n  istanbulThresholdReporter: {\n    src: 'tmp/coverage/coverage-mapped.json',\n    basePath: path.resolve(__dirname, 'path/to/source'),\n    reporters: ['text'], \n    thresholds: {\n      global: {\n        statements: 90,\n        branches: 90,\n        lines: 70,\n        functions: 90,\n      },\n      each: {\n        statements: 80,\n        branches: 80,\n        lines: 60,\n        functions: 80,\n      },\n    },    \n  }\n}\n```\n","readmeFilename":"Readme.md","users":{"epegzz":true,"cfleschhut":true,"titelmedia":true}}