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-regexnpm test
Usage
For more use-cases see the tests
var coverageCodeRegex = ; var fixture = 'var a = [1,2,3];__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;var b = 123;';;//=> true ;//=> 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