jest-allure2-adapter
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -11,2 +11,3 @@ /// <reference types="node" /> | ||
private stepNameStack; | ||
private environmentInfo; | ||
constructor(config?: IAllureConfig); | ||
@@ -28,2 +29,3 @@ get currentGroup(): AllureGroup; | ||
step<T>(name: string, body?: (step: StepInterface) => T, ...args: any[]): any; | ||
addEnvironment(name: string, value: string): this; | ||
writeAttachment(content: Buffer | string, type: ContentType): string; | ||
@@ -30,0 +32,0 @@ logStep(name: string, status: Status, attachments?: [Attachment]): void; |
@@ -31,2 +31,3 @@ "use strict"; | ||
this.stepNameStack = []; | ||
this.environmentInfo = {}; | ||
// const t = new AllureRuntime(config ?? { resultsDir: 'allure-results' }); | ||
@@ -224,2 +225,7 @@ } | ||
} | ||
addEnvironment(name, value) { | ||
this.environmentInfo[name] = value; | ||
this.writeEnvironmentInfo(this.environmentInfo); | ||
return this; | ||
} | ||
writeAttachment(content, type) { | ||
@@ -226,0 +232,0 @@ return this.runtime.writeAttachment(content, type); |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
17465
445