Socket
Socket
Sign inDemoInstall

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.1.0 to 0.1.1

3

dist/AllureReporter.d.ts

@@ -12,2 +12,3 @@ /// <reference types="node" />

private environmentInfo;
private categories;
constructor(config?: IAllureConfig);

@@ -23,4 +24,4 @@ get currentGroup(): AllureGroup;

get currentStep(): AllureStep | null;
writeCategories(): void;
private applyGroupping;
writeCategoriesDefinitions(categories: Category[]): void;
endGroup(): void;

@@ -27,0 +28,0 @@ private findMessageAboutThrow;

@@ -10,3 +10,2 @@ "use strict";

const path_1 = require("path");
const setup_1 = require("./setup");
var SpecStatus;

@@ -33,2 +32,3 @@ (function (SpecStatus) {

this.environmentInfo = {};
this.categories = [];
}

@@ -139,2 +139,5 @@ get currentGroup() {

}
writeCategories() {
super.writeCategoriesDefinitions(this.categories);
}
applyGroupping() {

@@ -152,5 +155,2 @@ const groups = this.groupNameStack;

}
writeCategoriesDefinitions(categories) {
super.writeCategoriesDefinitions(categories);
}
endGroup() {

@@ -255,3 +255,3 @@ if (!this.currentGroup) {

// todo check if the same exist
setup_1.Categories.push(category);
this.categories.push(category);
}

@@ -258,0 +258,0 @@ addPackage(value) {

@@ -1,2 +0,1 @@

import { Category } from 'allure-js-commons';
import { AllureReporter } from './AllureReporter';

@@ -23,3 +22,2 @@ export declare namespace jasmine {

}
export declare const Categories: Category[];
export declare function registerAllureReporter(): void;

@@ -26,0 +24,0 @@ declare global {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerAllureReporter = exports.Categories = void 0;
exports.registerAllureReporter = void 0;
const path_1 = require("path");
const AllureReporter_1 = require("./AllureReporter");
exports.Categories = []; // todo check may not work
// export const Categories: Category[] = []; // todo check may not work
class JasmineAllureReporter {
// private config: ReporterLocalConfig | undefined;
// private environmentInfo: Record<string, string> = {};
constructor(allure) {
this.allure = allure;
// this.config = config?.reporter;
// (this.config?.categories ?? []).forEach((c) => this.addCategory(c));
}

@@ -25,3 +21,3 @@ suiteStarted(suite) {

jasmineDone() {
this.writeCategories();
this.allure.writeCategories();
}

@@ -37,5 +33,2 @@ suiteDone() {

}
writeCategories() {
this.allure.writeCategoriesDefinitions(exports.Categories);
}
}

@@ -42,0 +35,0 @@ function registerAllureReporter() {

{
"name": "jest-allure2-adapter",
"version": "0.1.0",
"version": "0.1.1",
"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