jest-allure2-adapter
Advanced tools
Comparing version 0.2.49 to 0.2.50
@@ -107,7 +107,3 @@ "use strict"; | ||
getAttachFile(content, type) { | ||
const stripped = content | ||
.split('\n') | ||
.map((p) => stripAnsi(p)) | ||
.join('\n'); | ||
return this.runtime.writeAttachment(stripped, type); | ||
return this.runtime.writeAttachment(stripAnsi(content), type); | ||
} | ||
@@ -308,3 +304,3 @@ endStep(status, stage, details, end) { | ||
attachment(name, content, type) { | ||
const file = this.runtime.writeAttachment(content, type); | ||
const file = this.runtime.writeAttachment(typeof content === 'string' ? stripAnsi(content) : content, type); | ||
this.currentTest.addAttachment(name, type, file); | ||
@@ -311,0 +307,0 @@ } |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.49", | ||
"version": "0.2.50", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
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
231281
5833