Skip to content

Commit

Permalink
adust breaking changes in yargs' array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jan 11, 2021
1 parent a6ae1d7 commit 54f50b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions bin/mocha
Expand Up @@ -36,8 +36,6 @@ const disableTimeouts = value => {
if (impliesNoTimeouts(value)) {
debug('option %s disabled timeouts', value);
mochaArgs.timeout = 0;
delete mochaArgs.timeouts;
delete mochaArgs.t;
}
};

Expand Down Expand Up @@ -93,7 +91,6 @@ if (mochaArgs.require && mochaArgs.require.includes('esm')) {
if (!mochaArgs.require.length) {
delete mochaArgs.require;
}
delete mochaArgs.r;
}

if (Object.keys(nodeArgs).length) {
Expand Down
3 changes: 2 additions & 1 deletion lib/cli/options.js
Expand Up @@ -38,7 +38,8 @@ const {isNodeFlag} = require('./node-flags');
const YARGS_PARSER_CONFIG = {
'combine-arrays': true,
'short-option-groups': false,
'dot-notation': false
'dot-notation': false,
'strip-aliased': true
};

/**
Expand Down
2 changes: 0 additions & 2 deletions test/node-unit/cli/options.spec.js
Expand Up @@ -25,8 +25,6 @@ const proxyLoadOptions = ({

const defaults = {
timeout: 1000,
timeouts: 1000,
t: 1000,
extension: ['js']
};

Expand Down

0 comments on commit 54f50b1

Please sign in to comment.