UNPKG

nyc-config-common

Version:

A reusable nyc configuration to improve common workflow

17 lines (13 loc) 279 B
'use strict'; const main = {}; if (process.env.CI) { if (process.argv.includes('report')) { main.reporter = ['text-lcov']; } else { main.reporter = ['text']; } } else { main.tempDir = 'coverage/.nyc_output'; main.reporter = ['html', 'text']; } module.exports = main;