@e2e-dev/github 0.4.5-nightly-20261102030224 → 0.4.5-nightly-20261104030231
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/.build.json +1 -1
- package/dist/merge.js +17 -4
- package/package.json +4 -4
package/dist/.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.4.5-nightly-
|
|
1
|
+
{"version":"0.4.5-nightly-20261104030231"}
|
package/dist/merge.js
CHANGED
|
@@ -43,11 +43,24 @@ function foldGroup(current, before) {
|
|
|
43
43
|
const attempts = [...before.attempts, ...current.attempts].map((attempt, index) => ({ ...attempt, index }));
|
|
44
44
|
return { ...current, attempts };
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
47
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Whether a serial member's record is a run of its body, a body that skipped
|
|
48
|
+
* itself included. Mirrors `memberRan` in e2e's `run/records.ts`, which the
|
|
49
|
+
* peer range keeps this package from importing.
|
|
50
|
+
*/
|
|
51
|
+
function memberRan(member) {
|
|
52
|
+
return member.status !== 'skipped' || member.skip?.cause === 'explicit';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The counts the way the runner tallies them, over the folded results: the
|
|
56
|
+
* status counts are over the selected ones, and a serial member executed when
|
|
57
|
+
* one of its group's attempts ran its body, a body that skipped itself included.
|
|
58
|
+
*/
|
|
59
|
+
function summarize(results, serialGroups, base) {
|
|
48
60
|
const summary = { ...base, discovered: results.length, selected: 0, executed: 0, passed: 0, failed: 0, interrupted: 0, flaky: 0, skipped: 0 };
|
|
61
|
+
const ranMembers = new Set(serialGroups.flatMap((group) => group.attempts.flatMap((attempt) => attempt.members.filter(memberRan).map((member) => `${group.id}\u0000${member.testId}`))));
|
|
49
62
|
for (const result of results) {
|
|
50
|
-
if (result.attempts.length > 0 || (result.serialGroupId !== undefined && result.
|
|
63
|
+
if (result.attempts.length > 0 || (result.serialGroupId !== undefined && ranMembers.has(`${result.serialGroupId}\u0000${result.testId}`)))
|
|
51
64
|
summary.executed += 1;
|
|
52
65
|
if (!result.selected)
|
|
53
66
|
continue;
|
|
@@ -145,7 +158,7 @@ export function foldLastRun(current, lastRun) {
|
|
|
145
158
|
serialGroups,
|
|
146
159
|
results,
|
|
147
160
|
errors: [...current.run.errors, ...carriedErrors],
|
|
148
|
-
summary: summarize(results, current.run.summary),
|
|
161
|
+
summary: summarize(results, serialGroups, current.run.summary),
|
|
149
162
|
filters: lastRun.run.filters,
|
|
150
163
|
changes: lastRun.run.changes,
|
|
151
164
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2e-dev/github",
|
|
3
|
-
"version": "0.4.5-nightly-
|
|
3
|
+
"version": "0.4.5-nightly-20261104030231",
|
|
4
4
|
"description": "GitHub reporter for e2e: one pull request comment per run, from GitHub Actions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"e2e",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"NOTICE"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"e2e": "0.22.1-nightly-
|
|
46
|
+
"e2e": "0.22.1-nightly-20261104030231"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "26.6.6",
|
|
50
|
-
"e2e": "0.22.1-nightly-
|
|
50
|
+
"e2e": "0.22.1-nightly-20261104030231",
|
|
51
51
|
"typescript": "7.0.2",
|
|
52
|
-
"vitest": "5.0
|
|
52
|
+
"vitest": "5.1.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": "^22.22.3 || >=24.8.0"
|