How to use the matcherFor function from istanbul

Find comprehensive JavaScript istanbul.matcherFor code examples handpicked from public code repositorys.

20
21
22
23
24
25
26
27
28
29
};
core.getCoverageObject = getCoverageObject;

//returns a matcher that returns all JS files under root
//except when the file is anywhere under `node_modules`
//does not use istanbul.matcherFor() so as to expose
//a synchronous interface
function getRootMatcher(root) {
    return function (file) {
        if (file.indexOf(root) !== 0) {
fork icon41
star icon0
watch icon14

48
49
50
51
52
53
54
55
56
57
  }
});
Object.defineProperty(exports, 'matcherFor', {
  enumerable: true,
  get: function get() {
    return _istanbul.matcherFor;
  }
});
Object.defineProperty(exports, 'Writer', {
  enumerable: true,
fork icon1
star icon0
watch icon0