jest-allure2-adapter
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -5,3 +5,2 @@ /// <reference types="node" /> | ||
import { AllureStep, Attachment, Category, ContentType, LinkType, Severity, Stage, Status, StepInterface } from 'allure-js-commons'; | ||
import { jasmine } from './setup'; | ||
export interface AllureReporterApi { | ||
@@ -58,3 +57,2 @@ startGroup(name: string): void; | ||
} | ||
export declare function addReporter(jasmineCustom?: (r: AllureReporterApi) => jasmine.CustomReporter): void; | ||
declare namespace JestAllureReporter { | ||
@@ -61,0 +59,0 @@ type ReporterConfig = { |
@@ -6,14 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addReporter = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const JasmineAllureReporter_1 = require("./JasmineAllureReporter"); | ||
const setup_1 = require("./setup"); | ||
setup_1.registerAllureReporter(); | ||
function addReporter(jasmineCustom) { | ||
// const reporter = ((global as any).reporter = new AllureReporter()); | ||
setup_1.jasmine | ||
.getEnv() | ||
.addReporter(jasmineCustom !== null && jasmineCustom !== void 0 ? jasmineCustom : new JasmineAllureReporter_1.JasmineAllureReporter(reporter)); | ||
} | ||
exports.addReporter = addReporter; | ||
class JestAllureReporter { | ||
@@ -20,0 +9,0 @@ constructor(globalConfig, options = {}) { |
import { AllureReporter } from './AllureReporter'; | ||
import { AllureReporterApi } from './index'; | ||
export declare namespace jasmine { | ||
@@ -22,5 +23,5 @@ function getEnv(): any; | ||
} | ||
export declare function registerAllureReporter(): AllureReporter; | ||
export declare function registerAllureReporter(jasmineCustom?: (r: AllureReporterApi) => jasmine.CustomReporter): void; | ||
declare global { | ||
export const reporter: AllureReporter; | ||
} |
@@ -5,7 +5,12 @@ "use strict"; | ||
const AllureReporter_1 = require("./AllureReporter"); | ||
function registerAllureReporter() { | ||
return (global.reporter = new AllureReporter_1.AllureReporter()); | ||
const JasmineAllureReporter_1 = require("./JasmineAllureReporter"); | ||
function registerAllureReporter(jasmineCustom) { | ||
const reporter = (global.reporter = new AllureReporter_1.AllureReporter()); | ||
// (global as any).reporter = new AllureReporter(); | ||
//(jasmine as any).getEnv().addReporter(new JasmineAllureReporter(reporter)); | ||
jasmine | ||
.getEnv() | ||
.addReporter(jasmineCustom | ||
? jasmineCustom(reporter) | ||
: new JasmineAllureReporter_1.JasmineAllureReporter(reporter)); | ||
} | ||
exports.registerAllureReporter = registerAllureReporter; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"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
29989
647