@reporters/web 1.4.0 → 1.5.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.
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/dist/start.js +80 -26
- package/dist/viewer/index.html +80 -26
- package/dist/viewer.global.js +80 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.0](https://github.com/MoLow/reporters/compare/web-v1.4.1...web-v1.5.0) (2026-07-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* carried-over (rerun) test annotation in the web viewer ([#242](https://github.com/MoLow/reporters/issues/242)) ([da83597](https://github.com/MoLow/reporters/commit/da83597a6c1b11c88bed808658863ff40064625a))
|
|
9
|
+
* **web:** mobile-friendly viewer layout and header polish ([#239](https://github.com/MoLow/reporters/issues/239)) ([61de320](https://github.com/MoLow/reporters/commit/61de320597de08f76290a840fc195bed9f5d08d5))
|
|
10
|
+
* **web:** shared body-level tooltip engine and full tooltip coverage ([#243](https://github.com/MoLow/reporters/issues/243)) ([1b63da1](https://github.com/MoLow/reporters/commit/1b63da13900352105274856babb5e1c474c43be5))
|
|
11
|
+
|
|
12
|
+
## [1.4.1](https://github.com/MoLow/reporters/compare/web-v1.4.0...web-v1.4.1) (2026-07-06)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **web:** true live durations via writer stamps on the wire ([#237](https://github.com/MoLow/reporters/issues/237)) ([42d5478](https://github.com/MoLow/reporters/commit/42d5478d153de83d8f457fb8783794a5aed54408))
|
|
18
|
+
|
|
3
19
|
## [1.4.0](https://github.com/MoLow/reporters/compare/web-v1.3.0...web-v1.4.0) (2026-07-06)
|
|
4
20
|
|
|
5
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ interface TestEventData {
|
|
|
20
20
|
error?: unknown;
|
|
21
21
|
type?: string;
|
|
22
22
|
passed?: boolean;
|
|
23
|
+
attempt?: number;
|
|
24
|
+
passed_on_attempt?: number;
|
|
23
25
|
};
|
|
24
26
|
counts?: Record<string, number>;
|
|
25
27
|
duration_ms?: number;
|
|
@@ -27,6 +29,8 @@ interface TestEventData {
|
|
|
27
29
|
}
|
|
28
30
|
interface TestEvent {
|
|
29
31
|
type: string;
|
|
32
|
+
/** Writer wall-clock (epoch ms), stamped when the event is serialized. */
|
|
33
|
+
t?: number;
|
|
30
34
|
data: TestEventData;
|
|
31
35
|
}
|
|
32
36
|
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ function flattenError(raw) {
|
|
|
16
16
|
function toWireEvent(event) {
|
|
17
17
|
const d = event.data ?? {};
|
|
18
18
|
const data = {};
|
|
19
|
+
const t = event.t;
|
|
19
20
|
if (d.name != null) data.name = d.name;
|
|
20
21
|
if (d.nesting != null) data.nesting = d.nesting;
|
|
21
22
|
if (d.file != null) data.file = d.file;
|
|
@@ -40,11 +41,14 @@ function toWireEvent(event) {
|
|
|
40
41
|
passed: d.details.passed,
|
|
41
42
|
error: flattenError(d.details.error)
|
|
42
43
|
};
|
|
44
|
+
if (d.details.attempt != null) data.details.attempt = d.details.attempt;
|
|
45
|
+
if (d.details.passed_on_attempt != null) data.details.passed_on_attempt = d.details.passed_on_attempt;
|
|
43
46
|
}
|
|
44
|
-
return { type: event.type, data };
|
|
47
|
+
return t != null ? { type: event.type, t, data } : { type: event.type, data };
|
|
45
48
|
}
|
|
46
49
|
function serializeWireLine(event) {
|
|
47
|
-
|
|
50
|
+
const stamped = event.t != null ? event : { ...event, t: Date.now() };
|
|
51
|
+
return `${JSON.stringify(toWireEvent(stamped))}
|
|
48
52
|
`;
|
|
49
53
|
}
|
|
50
54
|
|