Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check-coverage with custom options #483

Merged
merged 1 commit into from
Jan 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix check-coverage with custom options
Specifically, if the temp directory is configured, this needs to be
configured on the NYC instance for both the command line action
`check-coverage` as well as the `--check-coverage` flag passed when
executing tests.
  • Loading branch information
Whitney Young committed Jan 7, 2017
commit 40605d4c8fb6cb4138616c624b42b8b332ea1e80
2 changes: 1 addition & 1 deletion bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function report (argv) {
function checkCoverage (argv, cb) {
process.env.NYC_CWD = process.cwd()

;(new NYC()).checkCoverage({
;(new NYC(argv)).checkCoverage({
lines: argv.lines,
functions: argv.functions,
branches: argv.branches,
Expand Down