jest-allure2-adapter
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -35,3 +35,5 @@ /// <reference types="node" /> | ||
addPackage(value: string): this; | ||
addPackageByTestPath(relativeFrom: string, spec: any): this; | ||
addParameter(name: string, value: string): this; | ||
addTestPathParameter(relativeFrom: string, spec: any): this; | ||
description(description: string): this; | ||
@@ -38,0 +40,0 @@ descriptionHtml(description: string): this; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const strip_ansi_1 = __importDefault(require("strip-ansi")); | ||
const path_1 = require("path"); | ||
const setup_1 = require("./setup"); | ||
@@ -257,2 +258,7 @@ var SpecStatus; | ||
} | ||
addPackageByTestPath(relativeFrom, spec) { | ||
const relativePath = path_1.relative(relativeFrom, spec.testPath); | ||
this.addPackage(relativePath); | ||
return this; | ||
} | ||
addParameter(name, value) { | ||
@@ -262,2 +268,7 @@ this.currentExecutable.addParameter(name, value); | ||
} | ||
addTestPathParameter(relativeFrom, spec) { | ||
const relativePath = path_1.relative(relativeFrom, spec.testPath); | ||
this.addParameter('Test Path', relativePath); | ||
return this; | ||
} | ||
description(description) { | ||
@@ -264,0 +275,0 @@ this.currentTest.description = description; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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
31653
838