Skip to content

Commit

Permalink
Suppress tests that uncredited coverage and not currently chasing
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Jan 10, 2021
1 parent 0cf2b5d commit d3c9146
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,8 @@ class Command extends EventEmitter {
throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
}
// @ts-ignore: unknown property
// mainModule is deprecated, revisit coverage when change code.
// istanbul ignore next
if (!this._scriptPath && process.mainModule) {
// @ts-ignore: unknown property
this._scriptPath = process.mainModule.filename;
Expand Down Expand Up @@ -1316,6 +1318,8 @@ class Command extends EventEmitter {
* @api private
*/

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

0 comments on commit d3c9146

Please sign in to comment.