Package Exports
- coverage-code-regex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coverage-code-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one
__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;
Install
npm i --save coverage-code-regex
npm test
Usage
For more use-cases see the tests
var coverageCodeRegex = require('coverage-code-regex');
var fixture = 'var a = [1,2,3];__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;var b = 123;';
coverageCodeRegex().test(fixture);
//=> true
coverageCodeRegex().test('var a = [1,2,3]; var b = 123;');
//=> false
Author
Charlike Mike Reagent
License 
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by kdf, January 28, 2015