From 0e2cf10562ff342a2365c1d1287ed1d9c19d1d75 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Sat, 11 Jan 2020 10:08:25 +0000 Subject: [PATCH] fix: use documented `reporterOption` instead of intuitive `reporterOptions` https://github.com/mochajs/mocha/issues/4142#issuecomment-573295470 --- packages/mocha/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mocha/src/index.js b/packages/mocha/src/index.js index 7d13f05e3..656e911e4 100644 --- a/packages/mocha/src/index.js +++ b/packages/mocha/src/index.js @@ -52,7 +52,9 @@ async function runTests({ grep, color: true, reporter, - reporterOptions, + + // https://github.com/mochajs/mocha/issues/4142#issuecomment-573295470 + reporterOption: reporterOptions, }; if (disableTimeouts) { mochaOpts.timeout = false;