Skip to content

Commit

Permalink
fix: make $rewriteMetricName work with TypeScript scripts (#3439)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy authored Dec 18, 2024
1 parent 6faa5cb commit 74b945d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/artillery-engine-playwright/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ class PlaywrightEngine {

this.config = script.config?.engines?.playwright || {};
this.processor = script.config.processor || {};

if (script.$rewriteMetricName) {
this.processor.$rewriteMetricName = script.$rewriteMetricName;
}

this.launchOptions = this.config.launchOptions || {};
this.contextOptions = this.config.contextOptions || {};

Expand Down

0 comments on commit 74b945d

Please sign in to comment.