Skip to content

Commit

Permalink
feat: Add baseline switch to nyc instrument command
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Finlay committed Jan 6, 2020
1 parent f83e9d7 commit 0be88e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const tempDir = {
default: './.nyc_output',
nycAlias: 't',
nycHiddenAlias: 'temp-directory',
nycCommands: [null, 'check-coverage', 'merge', 'report']
nycCommands: [null, 'check-coverage', 'instrument', 'merge', 'report']
};

const testExclude = {
Expand Down Expand Up @@ -342,6 +342,12 @@ const instrumentOnly = {
type: 'boolean',
default: false,
nycCommands: nycCommands.instrumentOnly
},
baseline: {
description: 'should nyc create a baseline coverage file?',
type: 'boolean',
default: false,
nycCommands: nycCommands.instrumentOnly
}
};

Expand Down
1 change: 1 addition & 0 deletions tap-snapshots/test-test.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Object {
"all": false,
"autoWrap": true,
"babelCache": false,
"baseline": false,
"branches": 0,
"cache": true,
"checkCoverage": false,
Expand Down

0 comments on commit 0be88e7

Please sign in to comment.