allure-jasmine
Advanced tools
Comparing version 2.0.0-beta.8 to 2.0.0-beta.9
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Allure = exports.Severity = exports.ContentType = exports.AllureConfig = exports.AllureRuntime = exports.JasmineConsoleReporter = exports.JasmineAllureReporter = void 0; | ||
var JasmineAllureReporter_1 = require("./src/JasmineAllureReporter"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "JasmineAllureReporter", { enumerable: true, get: function () { return JasmineAllureReporter_1.JasmineAllureReporter; } }); |
/// <reference types="node" /> | ||
/// <reference types="jasmine" /> | ||
import { AllureGroup, AllureRuntime, AllureStep, AllureTest, ContentType, ExecutableItemWrapper, Status, Allure, StepInterface, IAllureConfig } from "allure-js-commons"; | ||
import { AllureGroup, AllureRuntime, AllureStep, AllureTest, AttachmentOptions, ContentType, ExecutableItemWrapper, Status, Allure, StepInterface, IAllureConfig } from "allure-js-commons"; | ||
export declare class JasmineAllureReporter implements jasmine.CustomReporter { | ||
@@ -17,3 +17,3 @@ private groupStack; | ||
get currentExecutable(): ExecutableItemWrapper | null; | ||
writeAttachment(content: Buffer | string, type: ContentType): string; | ||
writeAttachment(content: Buffer | string, options: ContentType | string | AttachmentOptions): string; | ||
jasmineStarted(suiteInfo: jasmine.SuiteInfo): void; | ||
@@ -42,3 +42,3 @@ suiteStarted(suite: jasmine.CustomReporterResult): void; | ||
logStep(name: string, status?: Status): void; | ||
attachment(name: string, content: Buffer | string, type: ContentType): void; | ||
attachment(name: string, content: Buffer | string, options: ContentType | string | AttachmentOptions): void; | ||
} |
@@ -46,4 +46,4 @@ "use strict"; | ||
} | ||
writeAttachment(content, type) { | ||
return this.runtime.writeAttachment(content, type); | ||
writeAttachment(content, options) { | ||
return this.runtime.writeAttachment(content, options); | ||
} | ||
@@ -269,5 +269,5 @@ jasmineStarted(suiteInfo) { | ||
} | ||
attachment(name, content, type) { | ||
const file = this.reporter.writeAttachment(content, type); | ||
this.currentExecutable.addAttachment(name, type, file); | ||
attachment(name, content, options) { | ||
const file = this.reporter.writeAttachment(content, options); | ||
this.currentExecutable.addAttachment(name, options, file); | ||
} | ||
@@ -274,0 +274,0 @@ } |
{ | ||
"name": "allure-jasmine", | ||
"version": "2.0.0-beta.8", | ||
"version": "2.0.0-beta.9", | ||
"description": "Allure Jasmine integration", | ||
@@ -27,3 +27,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"allure-js-commons": "^2.0.0-beta.8" | ||
"allure-js-commons": "^2.0.0-beta.9" | ||
}, | ||
@@ -50,3 +50,3 @@ "nyc": { | ||
}, | ||
"gitHead": "96cb18546ac2ad3797beb1ce51d7f45ef5a0676c" | ||
"gitHead": "2debbad94a8a7c5d8c88f74413ec44433a4664a8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38886
378