From b93768424ff3f9a3aa65d0f2762dd4ab829518b8 Mon Sep 17 00:00:00 2001 From: Steve Pletcher <4468322+ThePletch@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:43:08 -0500 Subject: [PATCH] Pass options to reporter as reporterOption Some reporters (e.g. the `json` reporter) expect reporter options to be set under the `reporterOption` key and don't recognize options passed under `reporterOptions`. To ensure compatibility, this change passes in the options under both keys. --- lib/MultiReporters.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MultiReporters.js b/lib/MultiReporters.js index 40ff292..563cecc 100644 --- a/lib/MultiReporters.js +++ b/lib/MultiReporters.js @@ -89,6 +89,7 @@ function MultiReporters(runner, options) { if (Reporter !== null) { return new Reporter( runner, { + reporterOption: reporterOptions, reporterOptions } );