diff --git a/playwright.ts b/playwright.ts index 3efc83ab1..bf3cd12ae 100644 --- a/playwright.ts +++ b/playwright.ts @@ -31,7 +31,9 @@ class MyReporter implements Reporter { protected _initPromise: Promise; constructor(opts: Partial) { - this._config = parseConfig(_.omit(opts, ['configDir'])); + const reporterOpts = _.omitBy(opts, (_value, key) => key === 'configDir' || key.startsWith('_')); + + this._config = parseConfig(reporterOpts); this._htmlReporter = HtmlReporter.create(this._config, {toolName: ToolName.Playwright}); this._staticReportBuilder = null; this._workerFarm = workerFarm(require.resolve('./lib/workers/worker'), ['saveDiffTo']);