Skip to content

Commit 74b945d

Browse files
authored
fix: make $rewriteMetricName work with TypeScript scripts (#3439)
1 parent 6faa5cb commit 74b945d

File tree

1 file changed

+5
-0
lines changed
  • packages/artillery-engine-playwright

1 file changed

+5
-0
lines changed

packages/artillery-engine-playwright/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ class PlaywrightEngine {
88

99
this.config = script.config?.engines?.playwright || {};
1010
this.processor = script.config.processor || {};
11+
12+
if (script.$rewriteMetricName) {
13+
this.processor.$rewriteMetricName = script.$rewriteMetricName;
14+
}
15+
1116
this.launchOptions = this.config.launchOptions || {};
1217
this.contextOptions = this.config.contextOptions || {};
1318

0 commit comments

Comments
 (0)