Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(check-coverage): make the --temp-dir option visible (#1101)
tests: move the reset-state helper to the helpers
  • Loading branch information
JaKXz committed May 6, 2019
1 parent 21fe1e7 commit b5b67de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/commands/check-coverage.js
Expand Up @@ -51,6 +51,16 @@ exports.builder = function (yargs) {
default: false,
description: 'check thresholds per file'
})
.option('temp-dir', {
alias: 't',
describe: 'directory to read raw coverage information from',
default: './.nyc_output',
global: false
})
.option('temp-directory', {
hidden: true,
global: false
})
.example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided")
}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/nyc-index.js
Expand Up @@ -17,7 +17,7 @@ const isWindows = require('is-windows')()
const spawn = require('child_process').spawn
const fixtures = path.resolve(__dirname, './fixtures')
const bin = path.resolve(__dirname, '../self-coverage/bin/nyc')
const resetState = require('./lib/reset-state')
const resetState = require('./helpers/reset-state')

require('chai').should()
require('tap').mochaGlobals()
Expand Down

0 comments on commit b5b67de

Please sign in to comment.