coveralls-next
Version:
takes json-cov output into stdin and POSTs to coveralls.io
19 lines (14 loc) • 350 B
JavaScript
;
const logDriver = require('log-driver');
const index = require('..');
module.exports = () => logDriver({ level: getLogLevel() });
function getLogLevel() {
if (
index.options.verbose ||
process.env.NODE_COVERALLS_DEBUG === 1 ||
process.env.NODE_COVERALLS_DEBUG === '1'
) {
return 'debug';
}
return 'error';
}