jest-allure2-adapter
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -9,3 +9,2 @@ "use strict"; | ||
const strip_ansi_1 = __importDefault(require("strip-ansi")); | ||
const path_1 = require("path"); | ||
const setup_1 = require("./setup"); | ||
@@ -33,3 +32,2 @@ var SpecStatus; | ||
this.environmentInfo = {}; | ||
// const t = new AllureRuntime(config ?? { resultsDir: 'allure-results' }); | ||
} | ||
@@ -96,2 +94,3 @@ get currentGroup() { | ||
} | ||
// todo type | ||
endTest(spec) { | ||
@@ -132,6 +131,2 @@ if (spec.status === SpecStatus.PASSED) { | ||
} | ||
const relativePath = path_1.relative(process.cwd(), spec.testPath); | ||
this.currentTest.addParameter('Test Path', relativePath); | ||
this.currentTest.fullName = spec.fullName; | ||
this.currentTest.addLabel(allure_js_commons_1.LabelName.PACKAGE, relativePath); | ||
this.currentTest.endTest(); | ||
@@ -138,0 +133,0 @@ } |
import { Category } from 'allure-js-commons'; | ||
import { AllureReporter } from './reporter'; | ||
export declare namespace jasmine { | ||
function getEnv(): any; | ||
interface CustomReporter { | ||
jasmineStarted?(suiteInfo: any): void; | ||
suiteStarted?(result: CustomReporterResult): void; | ||
specStarted?(result: CustomReporterResult): void; | ||
specDone?(result: CustomReporterResult): void; | ||
suiteDone?(result: CustomReporterResult): void; | ||
jasmineDone?(runDetails: any): void; | ||
} | ||
interface CustomReporterResult { | ||
description: string; | ||
failedExpectations?: any[]; | ||
fullName: string; | ||
id: string; | ||
passedExpectations?: any[]; | ||
pendingReason?: string; | ||
status?: string; | ||
} | ||
} | ||
export declare const Categories: Category[]; | ||
@@ -4,0 +24,0 @@ export declare function registerAllureReporter(): void; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"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
17754
460