Skip to content

Commit

Permalink
Add --no-coverage-map config
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 4, 2019
1 parent 85f6e89 commit 6213573
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bin/jack.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ Much more documentation available at: https://www.node-tap.org/
using a coverage map at all.`,
}),

'no-coverage-map': flag({
description: `Do not use a coverage map.
Primarily useful for disabling a coverage-map that is
set in a config file.`,
}),

coverage: flag({
default: true,
short: 'cov',
Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test-run-dump-config.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ check-coverage: true
color: false
comments: true
coverage: true
coverage-map: null
coverage-map: false
coverage-report:
- json
- html
Expand Down
2 changes: 1 addition & 1 deletion test/run/dump-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ t.test('shotgun a bunch of option parsing junk', t => {
'--timeout', '99', '--invert', '--no-invert', '--grep', 'x',
'--grep=/y/i', '--bail', '--no-bail', '--only', '-R', 'spec',
'--node-arg', 'abc', '--nyc-arg', 'abc', '-o', 'out.txt',
'--comments'
'--comments', '-M', 'map.js', '--no-coverage-map'
], { env: {
TAP: '0',
TAP_BAIL: '0',
Expand Down

0 comments on commit 6213573

Please sign in to comment.