Skip to content

Commit 1aeb89d

Browse files
authored
Reapply "chore: cleanup references of --opts (#5402)" (#5404) (#5476)
1 parent 65a91b5 commit 1aeb89d

File tree

3 files changed

+8
-34
lines changed

3 files changed

+8
-34
lines changed

.wallaby.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module.exports = () => {
1616
instrument: false
1717
},
1818
'package.json',
19-
'test/opts/mocha.opts',
2019
'mocharc.yml',
2120
'!lib/browser/growl.js'
2221
],

lib/cli/run.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,15 @@ exports.builder = yargs =>
169169
group: GROUPS.RULES
170170
},
171171
'list-interfaces': {
172-
conflicts: Array.from(ONE_AND_DONE_ARGS).filter(arg => arg !== "list-interfaces"),
172+
conflicts: Array.from(ONE_AND_DONE_ARGS).filter(
173+
arg => arg !== 'list-interfaces'
174+
),
173175
description: 'List built-in user interfaces & exit'
174176
},
175177
'list-reporters': {
176-
conflicts: Array.from(ONE_AND_DONE_ARGS).filter(arg => arg !== "list-reporters"),
178+
conflicts: Array.from(ONE_AND_DONE_ARGS).filter(
179+
arg => arg !== 'list-reporters'
180+
),
177181
description: 'List built-in reporters & exit'
178182
},
179183
'no-colors': {
@@ -196,7 +200,8 @@ exports.builder = yargs =>
196200
group: GROUPS.RULES
197201
},
198202
'posix-exit-codes': {
199-
description: 'Use POSIX and UNIX shell exit codes as Mocha\'s return value',
203+
description:
204+
"Use POSIX and UNIX shell exit codes as Mocha's return value",
200205
group: GROUPS.RULES
201206
},
202207
recursive: {
@@ -342,13 +347,6 @@ exports.builder = yargs =>
342347
);
343348
}
344349

345-
if (argv.opts) {
346-
throw createUnsupportedError(
347-
`--opts: configuring Mocha via 'mocha.opts' is DEPRECATED and no longer supported.
348-
Please use a configuration file instead.`
349-
);
350-
}
351-
352350
return true;
353351
})
354352
.middleware(async (argv, yargs) => {

test/integration/options/opts.spec.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)