diff --git a/bin/_mocha b/bin/_mocha index fe1cdcc8af..c96f1c2d31 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -367,19 +367,6 @@ if (program.reporterOptions !== undefined) { mocha.reporter(program.reporter, reporterOptions); -// load reporter - -let Reporter = null; -try { - Reporter = require(`../lib/reporters/${program.reporter}`); -} catch (err) { - try { - Reporter = require(program.reporter); - } catch (err2) { - throw new Error(`reporter "${program.reporter}" does not exist`); - } -} - // --no-colors if (!program.colors) {