@testrelic/playwright-analytics 2.2.7 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -83,15 +83,27 @@ declare class TestRelicReporter {
83
83
  private testRunId;
84
84
  private collectedTests;
85
85
  private fixtureDataReceived;
86
+ private testCount;
86
87
  private cloudClient;
87
88
  private cloudRunId;
88
89
  private runTimestamp;
90
+ private activeReportMode;
91
+ private streamingWriter;
92
+ private testIndex;
93
+ private summaryCounters;
89
94
  constructor(options?: Partial<ReporterConfig>);
90
95
  onBegin(config: PwFullConfig, _suite: PwSuite): Promise<void>;
91
96
  onTestBegin(test: PwTestCase, _result: PwTestResult): void;
92
97
  onTestEnd(test: PwTestCase, result: PwTestResult): void;
93
98
  onEnd(_result: PwFullResult): Promise<void>;
99
+ private finalizeStreamingReport;
100
+ /** Build a lightweight TestRunReport from streaming data (for HTML generation and cloud). */
101
+ private buildStreamingReport;
94
102
  printsToStdio(): boolean;
103
+ /** Check heap usage and warn or auto-switch to streaming mode. */
104
+ private checkMemoryPressure;
105
+ /** Switch from embedded to streaming mode mid-run. */
106
+ private switchToStreamingMode;
95
107
  private buildTimeline;
96
108
  private toTestResult;
97
109
  private writeReport;
package/dist/index.d.ts CHANGED
@@ -83,15 +83,27 @@ declare class TestRelicReporter {
83
83
  private testRunId;
84
84
  private collectedTests;
85
85
  private fixtureDataReceived;
86
+ private testCount;
86
87
  private cloudClient;
87
88
  private cloudRunId;
88
89
  private runTimestamp;
90
+ private activeReportMode;
91
+ private streamingWriter;
92
+ private testIndex;
93
+ private summaryCounters;
89
94
  constructor(options?: Partial<ReporterConfig>);
90
95
  onBegin(config: PwFullConfig, _suite: PwSuite): Promise<void>;
91
96
  onTestBegin(test: PwTestCase, _result: PwTestResult): void;
92
97
  onTestEnd(test: PwTestCase, result: PwTestResult): void;
93
98
  onEnd(_result: PwFullResult): Promise<void>;
99
+ private finalizeStreamingReport;
100
+ /** Build a lightweight TestRunReport from streaming data (for HTML generation and cloud). */
101
+ private buildStreamingReport;
94
102
  printsToStdio(): boolean;
103
+ /** Check heap usage and warn or auto-switch to streaming mode. */
104
+ private checkMemoryPressure;
105
+ /** Switch from embedded to streaming mode mid-run. */
106
+ private switchToStreamingMode;
95
107
  private buildTimeline;
96
108
  private toTestResult;
97
109
  private writeReport;