Skip to content

Commit

Permalink
fix(pwt): ignore private report options from pwt
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Jun 4, 2024
1 parent 9d2b52e commit 88e9e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class MyReporter implements Reporter {
protected _initPromise: Promise<void>;

constructor(opts: Partial<ReporterConfig>) {
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']);
Expand Down

0 comments on commit 88e9e5d

Please sign in to comment.