File tree Expand file tree Collapse file tree 3 files changed +8
-34
lines changed Expand file tree Collapse file tree 3 files changed +8
-34
lines changed Original file line number Diff line number Diff 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 ] ,
Original file line number Diff line number Diff 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 ) => {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments