Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-allure2-adapter

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-allure2-adapter - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

2

dist/index.d.ts

@@ -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 = {}) {

3

dist/setup.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc