From 5a07396360dc43bacfbf25fcb882cb16355d1fb2 Mon Sep 17 00:00:00 2001 From: Peter Dedene Date: Sat, 9 Mar 2019 20:59:21 +0100 Subject: [PATCH] No double reloading defaults, fixes #3808 --- lib/cli/options.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/cli/options.js b/lib/cli/options.js index 5ec8ff0ebf..f13a588baa 100644 --- a/lib/cli/options.js +++ b/lib/cli/options.js @@ -322,14 +322,7 @@ const loadOptions = (argv = []) => { args._ = args._.concat(optsConfig._ || []); } - args = parse( - args._, - args, - rcConfig || {}, - pkgConfig || {}, - optsConfig || {}, - mocharc - ); + args = parse(args._, args, rcConfig || {}, pkgConfig || {}, optsConfig || {}); // recombine positional arguments and "spec" if (args.spec) {