@testrelic/playwright-analytics 2.3.15 → 2.3.17
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.cjs +74 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +74 -73
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
package/dist/index.d.cts
CHANGED
|
@@ -87,6 +87,7 @@ declare class TestRelicReporter {
|
|
|
87
87
|
private cloudClient;
|
|
88
88
|
private cloudRunId;
|
|
89
89
|
private runTimestamp;
|
|
90
|
+
private pendingArtifactEntries;
|
|
90
91
|
private activeReportMode;
|
|
91
92
|
private streamingWriter;
|
|
92
93
|
private testIndex;
|
|
@@ -96,6 +97,12 @@ declare class TestRelicReporter {
|
|
|
96
97
|
onTestBegin(test: PwTestCase, _result: PwTestResult): void;
|
|
97
98
|
onTestEnd(test: PwTestCase, result: PwTestResult): void;
|
|
98
99
|
onEnd(_result: PwFullResult): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Collect artifact entries from all collected tests for cloud upload.
|
|
102
|
+
* In streaming mode, uses the separately accumulated pendingArtifactEntries
|
|
103
|
+
* since collectedTests artifacts are nulled after writing to disk.
|
|
104
|
+
*/
|
|
105
|
+
private collectArtifactEntries;
|
|
99
106
|
private finalizeStreamingReport;
|
|
100
107
|
/** Build a lightweight TestRunReport from streaming data (for HTML generation and cloud). */
|
|
101
108
|
private buildStreamingReport;
|
|
@@ -105,9 +112,14 @@ declare class TestRelicReporter {
|
|
|
105
112
|
/** Switch from embedded to streaming mode mid-run. */
|
|
106
113
|
private switchToStreamingMode;
|
|
107
114
|
private buildTimeline;
|
|
108
|
-
private toTestResult;
|
|
109
|
-
/** Read a JSONL file and return parsed lines, or null if file doesn't exist. */
|
|
110
115
|
private readJsonlFile;
|
|
116
|
+
private toTestResult;
|
|
117
|
+
/**
|
|
118
|
+
* Build a full payload for cloud upload that includes console logs,
|
|
119
|
+
* network requests, navigations, and actions read from JSONL files.
|
|
120
|
+
* Called before streaming writer moves files and before fields are nulled.
|
|
121
|
+
*/
|
|
122
|
+
private buildCloudTestPayload;
|
|
111
123
|
private writeReport;
|
|
112
124
|
}
|
|
113
125
|
|
package/dist/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ declare class TestRelicReporter {
|
|
|
87
87
|
private cloudClient;
|
|
88
88
|
private cloudRunId;
|
|
89
89
|
private runTimestamp;
|
|
90
|
+
private pendingArtifactEntries;
|
|
90
91
|
private activeReportMode;
|
|
91
92
|
private streamingWriter;
|
|
92
93
|
private testIndex;
|
|
@@ -96,6 +97,12 @@ declare class TestRelicReporter {
|
|
|
96
97
|
onTestBegin(test: PwTestCase, _result: PwTestResult): void;
|
|
97
98
|
onTestEnd(test: PwTestCase, result: PwTestResult): void;
|
|
98
99
|
onEnd(_result: PwFullResult): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Collect artifact entries from all collected tests for cloud upload.
|
|
102
|
+
* In streaming mode, uses the separately accumulated pendingArtifactEntries
|
|
103
|
+
* since collectedTests artifacts are nulled after writing to disk.
|
|
104
|
+
*/
|
|
105
|
+
private collectArtifactEntries;
|
|
99
106
|
private finalizeStreamingReport;
|
|
100
107
|
/** Build a lightweight TestRunReport from streaming data (for HTML generation and cloud). */
|
|
101
108
|
private buildStreamingReport;
|
|
@@ -105,9 +112,14 @@ declare class TestRelicReporter {
|
|
|
105
112
|
/** Switch from embedded to streaming mode mid-run. */
|
|
106
113
|
private switchToStreamingMode;
|
|
107
114
|
private buildTimeline;
|
|
108
|
-
private toTestResult;
|
|
109
|
-
/** Read a JSONL file and return parsed lines, or null if file doesn't exist. */
|
|
110
115
|
private readJsonlFile;
|
|
116
|
+
private toTestResult;
|
|
117
|
+
/**
|
|
118
|
+
* Build a full payload for cloud upload that includes console logs,
|
|
119
|
+
* network requests, navigations, and actions read from JSONL files.
|
|
120
|
+
* Called before streaming writer moves files and before fields are nulled.
|
|
121
|
+
*/
|
|
122
|
+
private buildCloudTestPayload;
|
|
111
123
|
private writeReport;
|
|
112
124
|
}
|
|
113
125
|
|