How to use the config function from istanbul

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

30
31
32
33
34
35
36
37
38
39
  }
});
Object.defineProperty(exports, 'config', {
  enumerable: true,
  get: function get() {
    return _istanbul.config;
  }
});
Object.defineProperty(exports, 'Reporter', {
  enumerable: true,
fork icon1
star icon0
watch icon0

43
44
45
46
47
48
49
50
51
52
var reporters = config.reporters
var sourceCache = globalSourceCache.get(basePath)
var includeAllSources = config.includeAllSources === true

if (config.watermarks) {
  config.watermarks = helper.merge({}, istanbul.config.defaultConfig().reporting.watermarks, config.watermarks)
}

if (!helper.isDefined(reporters)) {
  reporters = [config]
fork icon0
star icon0
watch icon1

29
30
31
32
33
34
35
36
37
38
        }
        return object;
}; // }}}

var jsonConfig = require(path.join(process.cwd(), 'istanbul.json'));
var config = istanbul.config.loadObject(ObjectAppend(istanbul.config.defaultConfig(), jsonConfig));
var verbose = config.verbose;
//console.log(JSON.stringify(config, null, 2));

var Report = require('istanbul/lib/report');
fork icon0
star icon0
watch icon2

+ 7 other calls in file