Skip to content

Commit 7b8974e

Browse files
author
Andrew Finlay
committed
Add baseline switch to nyc instrument command
1 parent f83e9d7 commit 7b8974e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,12 @@ const instrumentOnly = {
342342
type: 'boolean',
343343
default: false,
344344
nycCommands: nycCommands.instrumentOnly
345+
},
346+
baseline: {
347+
description: 'should nyc create a baseline coverage file?',
348+
type: 'boolean',
349+
default: false,
350+
nycCommands: nycCommands.instrumentOnly
345351
}
346352
};
347353

tap-snapshots/test-test.js-TAP.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Object {
7676
"all": false,
7777
"autoWrap": true,
7878
"babelCache": false,
79+
"baseline": false,
7980
"branches": 0,
8081
"cache": true,
8182
"checkCoverage": false,

0 commit comments

Comments
 (0)