jest-allure2-adapter
Advanced tools
Comparing version 0.2.37 to 0.2.38
@@ -98,3 +98,3 @@ "use strict"; | ||
endStep(status, stage, details, end) { | ||
var _a, _b; | ||
var _a; | ||
const step = this.stepStack.pop(); | ||
@@ -111,5 +111,11 @@ if (!step) { | ||
// todo: status details does not work in report, workaround below | ||
const file = this.runtime.writeAttachment(JSON.stringify(this.currentStepStatus.details, undefined, ' '), allure_js_commons_1.ContentType.JSON); | ||
(_b = this.currentStep) === null || _b === void 0 ? void 0 : _b.addAttachment('status details', allure_js_commons_1.ContentType.JSON, file); | ||
/*step.addAttachment( | ||
const buffer = JSON.stringify(this.currentStepStatus.details, undefined, ' '); | ||
const file = this.runtime.writeAttachment(buffer, allure_js_commons_1.ContentType.JSON); | ||
this.addAttachment('statusDetails1', buffer, allure_js_commons_1.ContentType.JSON); | ||
/* this.currentStep?.addAttachment( | ||
'status details', | ||
ContentType.JSON, | ||
file, | ||
); | ||
step.addAttachment( | ||
'statusDetails2', | ||
@@ -116,0 +122,0 @@ JSON.stringify(this.currentStepStatus.details, undefined, ' '), |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.37", | ||
"version": "0.2.38", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
50763
1165