jest-allure2-adapter
Advanced tools
Comparing version 0.2.50 to 0.2.51
@@ -248,3 +248,3 @@ "use strict"; | ||
step(name, body, start, ...args) { | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d, _e, _f; | ||
const allureStep = this.startStep(name, start); | ||
@@ -260,3 +260,3 @@ let result; | ||
catch (error) { | ||
this.endStep(allure_js_commons_1.Status.FAILED); | ||
this.endStep((_b = (_a = this.currentStepStatus) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : allure_js_commons_1.Status.FAILED, undefined, (_c = this.currentStepStatus) === null || _c === void 0 ? void 0 : _c.details); | ||
throw error; | ||
@@ -273,4 +273,5 @@ } | ||
.catch((error) => { | ||
var _a, _b, _c; | ||
console.log('Result fail: isPromise'); | ||
this.endStep(allure_js_commons_1.Status.FAILED); | ||
this.endStep((_b = (_a = this.currentStepStatus) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : allure_js_commons_1.Status.FAILED, undefined, (_c = this.currentStepStatus) === null || _c === void 0 ? void 0 : _c.details); | ||
throw error; | ||
@@ -280,3 +281,3 @@ }); | ||
else { | ||
this.endStep((_b = (_a = this.currentStepStatus) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : allure_js_commons_1.Status.PASSED, undefined, (_c = this.currentStepStatus) === null || _c === void 0 ? void 0 : _c.details); | ||
this.endStep((_e = (_d = this.currentStepStatus) === null || _d === void 0 ? void 0 : _d.status) !== null && _e !== void 0 ? _e : allure_js_commons_1.Status.PASSED, undefined, (_f = this.currentStepStatus) === null || _f === void 0 ? void 0 : _f.details); | ||
return result; | ||
@@ -283,0 +284,0 @@ } |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.50", | ||
"version": "0.2.51", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
231739
5834