@allurereport/core 3.0.1 → 3.1.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/dist/report.js +6 -4
- package/package.json +19 -18
package/dist/report.js
CHANGED
|
@@ -95,7 +95,7 @@ export class AllureReport {
|
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
catch
|
|
98
|
+
catch { }
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
this.validate = async (params) => {
|
|
@@ -412,14 +412,15 @@ export class AllureReport {
|
|
|
412
412
|
try {
|
|
413
413
|
outputDirFiles = await readdir(__classPrivateFieldGet(this, _AllureReport_output, "f"));
|
|
414
414
|
}
|
|
415
|
-
catch
|
|
415
|
+
catch { }
|
|
416
416
|
if (outputDirFiles.length === 0) {
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
const reportPath = join(__classPrivateFieldGet(this, _AllureReport_output, "f"), outputDirFiles[0]);
|
|
420
|
+
const reportStats = await lstat(reportPath);
|
|
420
421
|
const outputEntriesStats = await Promise.all(outputDirFiles.map((file) => lstat(join(__classPrivateFieldGet(this, _AllureReport_output, "f"), file))));
|
|
421
422
|
const outputDirectoryEntries = outputEntriesStats.filter((entry) => entry.isDirectory());
|
|
422
|
-
if (outputDirectoryEntries.length === 1) {
|
|
423
|
+
if (reportStats.isDirectory() && outputDirectoryEntries.length === 1) {
|
|
423
424
|
const reportContent = await readdir(reportPath);
|
|
424
425
|
for (const entry of reportContent) {
|
|
425
426
|
const currentFilePath = join(reportPath, entry);
|
|
@@ -432,7 +433,7 @@ export class AllureReport {
|
|
|
432
433
|
try {
|
|
433
434
|
await rm(dir, { recursive: true });
|
|
434
435
|
}
|
|
435
|
-
catch
|
|
436
|
+
catch { }
|
|
436
437
|
}
|
|
437
438
|
if (__classPrivateFieldGet(this, _AllureReport_history, "f")) {
|
|
438
439
|
try {
|
|
@@ -495,6 +496,7 @@ export class AllureReport {
|
|
|
495
496
|
state: pluginState,
|
|
496
497
|
reportFiles: pluginFiles,
|
|
497
498
|
reportUrl: this.reportUrl,
|
|
499
|
+
output: __classPrivateFieldGet(this, _AllureReport_output, "f"),
|
|
498
500
|
ci: __classPrivateFieldGet(this, _AllureReport_ci, "f"),
|
|
499
501
|
};
|
|
500
502
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/core",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Collection of generic Allure utilities used across the entire project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -25,23 +25,24 @@
|
|
|
25
25
|
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@allurereport/ci": "3.0
|
|
29
|
-
"@allurereport/core-api": "3.0
|
|
30
|
-
"@allurereport/plugin-allure2": "3.0
|
|
31
|
-
"@allurereport/plugin-api": "3.0
|
|
32
|
-
"@allurereport/plugin-awesome": "3.0
|
|
33
|
-
"@allurereport/plugin-classic": "3.0
|
|
34
|
-
"@allurereport/plugin-csv": "3.0
|
|
35
|
-
"@allurereport/plugin-dashboard": "3.0
|
|
36
|
-
"@allurereport/plugin-jira": "3.0
|
|
37
|
-
"@allurereport/plugin-log": "3.0
|
|
38
|
-
"@allurereport/plugin-progress": "3.0
|
|
39
|
-
"@allurereport/plugin-slack": "3.0
|
|
40
|
-
"@allurereport/plugin-
|
|
41
|
-
"@allurereport/
|
|
42
|
-
"@allurereport/reader
|
|
43
|
-
"@allurereport/
|
|
44
|
-
"@allurereport/
|
|
28
|
+
"@allurereport/ci": "3.1.0",
|
|
29
|
+
"@allurereport/core-api": "3.1.0",
|
|
30
|
+
"@allurereport/plugin-allure2": "3.1.0",
|
|
31
|
+
"@allurereport/plugin-api": "3.1.0",
|
|
32
|
+
"@allurereport/plugin-awesome": "3.1.0",
|
|
33
|
+
"@allurereport/plugin-classic": "3.1.0",
|
|
34
|
+
"@allurereport/plugin-csv": "3.1.0",
|
|
35
|
+
"@allurereport/plugin-dashboard": "3.1.0",
|
|
36
|
+
"@allurereport/plugin-jira": "3.1.0",
|
|
37
|
+
"@allurereport/plugin-log": "3.1.0",
|
|
38
|
+
"@allurereport/plugin-progress": "3.1.0",
|
|
39
|
+
"@allurereport/plugin-slack": "3.1.0",
|
|
40
|
+
"@allurereport/plugin-testops": "3.1.0",
|
|
41
|
+
"@allurereport/plugin-testplan": "3.1.0",
|
|
42
|
+
"@allurereport/reader": "3.1.0",
|
|
43
|
+
"@allurereport/reader-api": "3.1.0",
|
|
44
|
+
"@allurereport/service": "3.1.0",
|
|
45
|
+
"@allurereport/summary": "3.1.0",
|
|
45
46
|
"handlebars": "^4.7.8",
|
|
46
47
|
"markdown-it": "^14.1.0",
|
|
47
48
|
"node-stream-zip": "^1.15.0",
|