@piwitests/reporter 0.70.0 → 0.71.0
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.
|
@@ -1447,6 +1447,7 @@ function parseManifestJson(text) {
|
|
|
1447
1447
|
method: r.method,
|
|
1448
1448
|
pattern: r.pattern,
|
|
1449
1449
|
handler: typeof r.handler === "string" ? r.handler : void 0,
|
|
1450
|
+
line: typeof r.handler === "string" && Number.isInteger(r.line) && r.line > 0 ? r.line : void 0,
|
|
1450
1451
|
responses: Array.isArray(r.responses) ? r.responses.filter((c) => Number.isInteger(c)) : void 0
|
|
1451
1452
|
})) : void 0;
|
|
1452
1453
|
const pages = Array.isArray(obj.pages) ? obj.pages.filter((p) => !!p && typeof p === "object").filter((p) => typeof p.pattern === "string").map((p) => ({ pattern: p.pattern, name: typeof p.name === "string" ? p.name : void 0 })) : void 0;
|
package/dist/index.js
CHANGED
|
@@ -8873,6 +8873,7 @@ function parseManifestJson(text2) {
|
|
|
8873
8873
|
method: r.method,
|
|
8874
8874
|
pattern: r.pattern,
|
|
8875
8875
|
handler: typeof r.handler === "string" ? r.handler : void 0,
|
|
8876
|
+
line: typeof r.handler === "string" && Number.isInteger(r.line) && r.line > 0 ? r.line : void 0,
|
|
8876
8877
|
responses: Array.isArray(r.responses) ? r.responses.filter((c) => Number.isInteger(c)) : void 0
|
|
8877
8878
|
})) : void 0;
|
|
8878
8879
|
const pages = Array.isArray(obj.pages) ? obj.pages.filter((p) => !!p && typeof p === "object").filter((p) => typeof p.pattern === "string").map((p) => ({ pattern: p.pattern, name: typeof p.name === "string" ? p.name : void 0 })) : void 0;
|
|
@@ -29749,7 +29750,8 @@ function testEnd(sink, testInfo) {
|
|
|
29749
29750
|
type: "test-end",
|
|
29750
29751
|
testId: testInfo.testId,
|
|
29751
29752
|
status: testInfo.status ?? "passed",
|
|
29752
|
-
pausedMs: sink.stops.reduce((sum, stop2) => sum + stop2.duration, 0)
|
|
29753
|
+
pausedMs: sink.stops.reduce((sum, stop2) => sum + stop2.duration, 0),
|
|
29754
|
+
expectedStatus: testInfo.expectedStatus
|
|
29753
29755
|
};
|
|
29754
29756
|
}
|
|
29755
29757
|
var piwiFixtures = {
|
|
@@ -17692,7 +17692,8 @@ function testEnd(sink, testInfo) {
|
|
|
17692
17692
|
type: "test-end",
|
|
17693
17693
|
testId: testInfo.testId,
|
|
17694
17694
|
status: testInfo.status ?? "passed",
|
|
17695
|
-
pausedMs: sink.stops.reduce((sum, stop2) => sum + stop2.duration, 0)
|
|
17695
|
+
pausedMs: sink.stops.reduce((sum, stop2) => sum + stop2.duration, 0),
|
|
17696
|
+
expectedStatus: testInfo.expectedStatus
|
|
17696
17697
|
};
|
|
17697
17698
|
}
|
|
17698
17699
|
var piwiFixtures = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piwitests/reporter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Playwright reporter that streams results, traces and HTML reports to a Piwi Dashboard instance",
|
|
5
5
|
"url": "https://github.com/PiwiTests/piwi",
|
|
6
6
|
"homepage": "https://piwitests.dev",
|