Skip to content

Commit

Permalink
feat!: default temp directory to report directory (#102)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: temp directory now defaults to setting for report directory
  • Loading branch information
bcoe committed May 20, 2019
1 parent bd7484f commit 8602f4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/parse-args.js
Expand Up @@ -61,7 +61,6 @@ function buildYargs (withCommands = false) {
type: 'boolean'
})
.option('temp-directory', {
default: './coverage/tmp',
describe: 'directory V8 coverage data is written to and read from'
})
.option('resolve', {
Expand All @@ -85,6 +84,12 @@ function buildYargs (withCommands = false) {
.pkgConf('c8')
.config(config)
.demandCommand(1)
.check((argv) => {
if (!argv.tempDirectory) {
argv.tempDirectory = argv.reportsDir
}
return true
})
.epilog('visit https://git.io/vHysA for list of available reporters')

const checkCoverage = require('./commands/check-coverage')
Expand Down

0 comments on commit 8602f4a

Please sign in to comment.