Skip to content

Commit b5b67de

Browse files
authored
fix(check-coverage): make the --temp-dir option visible (#1101)
tests: move the reset-state helper to the helpers
1 parent 21fe1e7 commit b5b67de

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/commands/check-coverage.js

+10
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ exports.builder = function (yargs) {
5151
default: false,
5252
description: 'check thresholds per file'
5353
})
54+
.option('temp-dir', {
55+
alias: 't',
56+
describe: 'directory to read raw coverage information from',
57+
default: './.nyc_output',
58+
global: false
59+
})
60+
.option('temp-directory', {
61+
hidden: true,
62+
global: false
63+
})
5464
.example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided")
5565
}
5666

File renamed without changes.

test/nyc-index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const isWindows = require('is-windows')()
1717
const spawn = require('child_process').spawn
1818
const fixtures = path.resolve(__dirname, './fixtures')
1919
const bin = path.resolve(__dirname, '../self-coverage/bin/nyc')
20-
const resetState = require('./lib/reset-state')
20+
const resetState = require('./helpers/reset-state')
2121

2222
require('chai').should()
2323
require('tap').mochaGlobals()

0 commit comments

Comments
 (0)