jest-allure2-adapter
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -8,2 +8,3 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
const dateNow = Date.now; | ||
const stripAnsi = require('strip-ansi'); | ||
@@ -75,3 +76,3 @@ var SpecStatus; | ||
startTest(spec, start) { | ||
this.runningTest = this.currentGroup.startTest(spec.description, start); | ||
this.runningTest = this.currentGroup.startTest(spec.description, start || dateNow()); | ||
this.runningTest.fullName = spec.fullName; | ||
@@ -92,3 +93,3 @@ this.executable.initDescription(); | ||
var _a; | ||
const allureStep = this.currentExecutable.startStep((((_a = this.config) === null || _a === void 0 ? void 0 : _a.stepTimestamp) ? utils_1.dateStr() + ' | ' : '') + name, start); | ||
const allureStep = this.currentExecutable.startStep((((_a = this.config) === null || _a === void 0 ? void 0 : _a.stepTimestamp) ? utils_1.dateStr() + ' | ' : '') + name, start || dateNow()); | ||
this.stepStack.push(allureStep); | ||
@@ -125,3 +126,3 @@ return allureStep; | ||
} | ||
step.endStep(end); | ||
step.endStep(end || dateNow()); | ||
this.currentStepStatus = null; | ||
@@ -182,3 +183,3 @@ } | ||
} | ||
this.currentTest.endTest(stop); | ||
this.currentTest.endTest(stop || dateNow()); | ||
} | ||
@@ -204,3 +205,3 @@ endGroup() { | ||
var _a, _b, _c, _d, _e, _f; | ||
const allureStep = this.startStep(name, start); | ||
const allureStep = this.startStep(name, start || dateNow()); | ||
let result; | ||
@@ -207,0 +208,0 @@ if (!body) { |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"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
2951585
52011