Skip to content

Commit d3c9146

Browse files
committed
Suppress tests that uncredited coverage and not currently chasing
1 parent 0cf2b5d commit d3c9146

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

+4
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,8 @@ class Command extends EventEmitter {
12711271
throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
12721272
}
12731273
// @ts-ignore: unknown property
1274+
// mainModule is deprecated, revisit coverage when change code.
1275+
// istanbul ignore next
12741276
if (!this._scriptPath && process.mainModule) {
12751277
// @ts-ignore: unknown property
12761278
this._scriptPath = process.mainModule.filename;
@@ -1316,6 +1318,8 @@ class Command extends EventEmitter {
13161318
* @api private
13171319
*/
13181320

1321+
/* _executeSubCommand is tested mostly by spawned calls which do not register in coverage. Don't count for now. */
1322+
/* istanbul ignore next */
13191323
_executeSubCommand(subcommand, args) {
13201324
args = args.slice();
13211325
let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.

0 commit comments

Comments
 (0)