jest-allure2-adapter
Advanced tools
Comparing version 0.2.44 to 0.2.45
@@ -24,5 +24,5 @@ /// <reference types="node" /> | ||
startStep(name: string, start?: number): AllureStep; | ||
stepStatus(status: Status, details?: StatusDetails): void; | ||
stepStatus(status: Status, details?: StatusDetails | any): void; | ||
private getAttachFile; | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails, end?: number): void; | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails | any, end?: number): void; | ||
private endSteps; | ||
@@ -29,0 +29,0 @@ private applyGroupping; |
@@ -111,2 +111,6 @@ "use strict"; | ||
const trace = content.trace; // ? stripAnsi(content.trace): undefined; | ||
if (!message && !trace) { | ||
buffer = JSON.stringify(content, undefined, ' '); | ||
return this.runtime.writeAttachment(buffer, allure_js_commons_1.ContentType.JSON); | ||
} | ||
if (message && !trace) { | ||
@@ -218,3 +222,2 @@ buffer = message; | ||
// message = stripAnsi(message); | ||
message = message; | ||
this.currentTest.detailsMessage = message; | ||
@@ -224,3 +227,2 @@ if (exceptionInfo.stack && typeof exceptionInfo.stack === 'string') { | ||
// stack = stripAnsi(stack); | ||
stack = stack; | ||
stack = stack.replace(message, ''); | ||
@@ -227,0 +229,0 @@ this.currentTest.detailsTrace = stack; |
@@ -29,4 +29,4 @@ /// <reference types="node" /> | ||
startStep(name: string, start?: number): AllureStep; | ||
stepStatus(status: Status, details?: StatusDetails): void; | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails, end?: number): void; | ||
stepStatus(status: Status, details?: StatusDetails | any): void; | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails | any, end?: number): void; | ||
endTest(spec: jasmine_.CustomReporterResult): void; | ||
@@ -33,0 +33,0 @@ writeCategories(categories: Category[]): void; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.44", | ||
"version": "0.2.45", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -241,4 +241,4 @@ # Jest-Allure-2 reporting plugin | ||
#### 0.2.44: step status without details when throws | ||
#### 0.2.43: feature for suite / story for suite | ||
#### 0.2.42: step status and status details | ||
@@ -245,0 +245,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34639
710