@e2e-dev/html-reporter 0.0.2-nightly-20261118030221 → 0.0.2
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/README.md +2 -1
- package/dist/.build.json +1 -1
- package/dist/app/index.html +15 -15
- package/dist/reporter.d.ts +5 -2
- package/dist/reporter.js +6 -1
- package/package.json +7 -7
package/dist/reporter.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export declare function htmlReporter(options?: HtmlReporterOptions): Reporter;
|
|
|
33
33
|
/**
|
|
34
34
|
* Fills the page template with one finished run, writes it, and resolves with
|
|
35
35
|
* the row naming where it went. Once `signal` aborts (the runner gave up on
|
|
36
|
-
* its reporters), it stops reading files and writes nothing.
|
|
36
|
+
* its reporters), it stops reading files and writes nothing. A run that wrote
|
|
37
|
+
* no report (it stopped before its tests, or the write failed) writes no
|
|
38
|
+
* page either, so the previous run's page stays beside the previous run's
|
|
39
|
+
* report, as `junit.xml` and `summary.md` do.
|
|
37
40
|
*/
|
|
38
|
-
export declare function writeReport(run: FinishedRun, options: HtmlReporterOptions, template: string, signal?: AbortSignal): Promise<ReporterSummary>;
|
|
41
|
+
export declare function writeReport(run: FinishedRun, options: HtmlReporterOptions, template: string, signal?: AbortSignal): Promise<ReporterSummary | undefined>;
|
package/dist/reporter.js
CHANGED
|
@@ -26,9 +26,14 @@ export function htmlReporter(options = {}) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Fills the page template with one finished run, writes it, and resolves with
|
|
28
28
|
* the row naming where it went. Once `signal` aborts (the runner gave up on
|
|
29
|
-
* its reporters), it stops reading files and writes nothing.
|
|
29
|
+
* its reporters), it stops reading files and writes nothing. A run that wrote
|
|
30
|
+
* no report (it stopped before its tests, or the write failed) writes no
|
|
31
|
+
* page either, so the previous run's page stays beside the previous run's
|
|
32
|
+
* report, as `junit.xml` and `summary.md` do.
|
|
30
33
|
*/
|
|
31
34
|
export async function writeReport(run, options, template, signal) {
|
|
35
|
+
if (run.reportPath === undefined)
|
|
36
|
+
return undefined;
|
|
32
37
|
const outputFile = options.outputFile === undefined
|
|
33
38
|
? path.join(path.dirname(run.artifactsRoot), 'report.html')
|
|
34
39
|
: path.resolve(run.projectRoot, options.outputFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2e-dev/html-reporter",
|
|
3
|
-
"version": "0.0.2
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "HTML reporter for e2e: one self-contained page per run, steps, screenshots, and video",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"e2e",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"contributors": [
|
|
14
|
-
"Oskar Kwaśniewski <oskar@
|
|
15
|
-
"Szymon Rybczak <szymon@
|
|
14
|
+
"Oskar Kwaśniewski <oskar@e2e.com>",
|
|
15
|
+
"Szymon Rybczak <szymon@e2e.com>"
|
|
16
16
|
],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"app/Lucide-LICENSE.txt"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"e2e": "0.23.
|
|
45
|
+
"e2e": ">=0.23.1 <1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tailwindcss/vite": "4.3.5",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@types/react": "19.3.0",
|
|
51
51
|
"@types/react-dom": "19.3.0",
|
|
52
52
|
"@vitejs/plugin-react": "6.3.0",
|
|
53
|
-
"e2e": "0.
|
|
54
|
-
"lucide-react": "1.
|
|
53
|
+
"e2e": "0.24.0",
|
|
54
|
+
"lucide-react": "1.76.0",
|
|
55
55
|
"react": "19.3.1",
|
|
56
56
|
"react-dom": "19.3.1",
|
|
57
57
|
"tailwindcss": "4.3.5",
|
|
58
58
|
"typescript": "7.0.2",
|
|
59
59
|
"vite": "8.3.8",
|
|
60
60
|
"vite-plugin-singlefile": "2.3.4",
|
|
61
|
-
"vitest": "5.1.
|
|
61
|
+
"vitest": "5.1.1"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^22.22.3 || >=24.8.0"
|