@allurereport/plugin-log 3.0.0-beta.7 → 3.0.0-beta.8
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/utils.js +8 -8
- package/package.json +4 -4
package/dist/utils.js
CHANGED
|
@@ -52,11 +52,11 @@ export const printTest = (test, options, indent = 0) => {
|
|
|
52
52
|
const failedResult = isFailedResult(test);
|
|
53
53
|
const indentSpaces = " ".repeat(indent);
|
|
54
54
|
console.info(`${indentSpaces}${title}`);
|
|
55
|
-
if (failedResult && test?.message) {
|
|
56
|
-
console.info(`${indentSpaces} ${red(test.message)}`);
|
|
55
|
+
if (failedResult && test.error?.message) {
|
|
56
|
+
console.info(`${indentSpaces} ${red(test.error.message)}`);
|
|
57
57
|
}
|
|
58
|
-
if (options?.withTrace && failedResult && test?.trace) {
|
|
59
|
-
test.trace.split("\n").forEach((line) => {
|
|
58
|
+
if (options?.withTrace && failedResult && test.error?.trace) {
|
|
59
|
+
test.error.trace.split("\n").forEach((line) => {
|
|
60
60
|
console.info(`${indentSpaces} ${gray(line)}`);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -73,11 +73,11 @@ export const printStep = (step, options, indent = 0) => {
|
|
|
73
73
|
const indentSpaces = " ".repeat(indent);
|
|
74
74
|
const failedResult = isFailedResult(step);
|
|
75
75
|
console.info(`${indentSpaces}${title}`);
|
|
76
|
-
if (failedResult && step?.message) {
|
|
77
|
-
console.info(` ${indentSpaces}${red(step.message)}`);
|
|
76
|
+
if (failedResult && step.error?.message) {
|
|
77
|
+
console.info(` ${indentSpaces}${red(step.error?.message)}`);
|
|
78
78
|
}
|
|
79
|
-
if (options?.withTrace && failedResult && step?.trace) {
|
|
80
|
-
step.trace.split("\n").forEach((line) => {
|
|
79
|
+
if (options?.withTrace && failedResult && step.error?.trace) {
|
|
80
|
+
step.error.trace.split("\n").forEach((line) => {
|
|
81
81
|
console.info(` ${indentSpaces}${gray(line)}`);
|
|
82
82
|
});
|
|
83
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-log",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.8",
|
|
4
4
|
"description": "Allure Plugin to write report in stdout",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "rimraf ./out && vitest run"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
35
|
-
"@allurereport/plugin-api": "3.0.0-beta.
|
|
34
|
+
"@allurereport/core-api": "3.0.0-beta.8",
|
|
35
|
+
"@allurereport/plugin-api": "3.0.0-beta.8",
|
|
36
36
|
"yoctocolors": "^2.1.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@typescript-eslint/parser": "^8.0.0",
|
|
44
44
|
"@vitest/runner": "^2.1.8",
|
|
45
45
|
"@vitest/snapshot": "^2.1.8",
|
|
46
|
-
"allure-vitest": "^3.0.
|
|
46
|
+
"allure-vitest": "^3.0.9",
|
|
47
47
|
"eslint": "^8.57.0",
|
|
48
48
|
"eslint-config-prettier": "^9.1.0",
|
|
49
49
|
"eslint-plugin-import": "^2.29.1",
|