Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

coverage-code-regex

regexps139MIT1.0.2

Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one __cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;

code, codes, cov, coverage, coverages, coveralls, during, express, expression, expressions, function, functions, lib, lib-cov, match, matching, name, process, re, regex, regexp, regexps, regular, test, tests, ugly

readme

npm mit license build status coverage status

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 MIT license

Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Powered and automated by kdf, January 28, 2015

changelog

v1.0.2 / January 28, 2015

  • Release v1.0.2 / npm@v1.0.2
  • add new test
  • update regex

v1.0.1 / January 28, 2015

  • Release v1.0.1 / npm@v1.0.1
  • fix regex range to {1,22}

v1.0.0 / January 28, 2015

  • Release v1.0.0 / npm@v1.0.0
  • update description and example usage

v0.0.0 / January 28, 2015