Socket
Socket
Sign inDemoInstall

jest-allure2-adapter

Package Overview
Dependencies
11
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.12 to 0.1.13

readme.md

7

dist/AllureReporter.d.ts

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

private runningGroup;
runningExecutable: ExecutableItemWrapper | null;
private runningExecutable;
private groupStack;

@@ -22,7 +22,7 @@ private groupNameStack;

endStep(status?: Status, stage?: Stage): void;
endSteps(): void;
private endSteps;
private applyGroupping;
endTest(spec: any): void;
get currentStep(): AllureStep | null;
writeCategories(): void;
private applyGroupping;
endGroup(): void;

@@ -39,3 +39,2 @@ private findMessageAboutThrow;

addPackage(value: string): this;
addPackageByTestPath(relativeFrom: string, spec: any): this;
addParameter(name: string, value: string): this;

@@ -42,0 +41,0 @@ addParameters(...params: [string, any][]): this;

@@ -101,2 +101,19 @@ "use strict";

}
applyGroupping() {
const groups = this.groupNameStack;
this.addPackage(groups.join('.'));
if (groups.length > 0) {
this.parentSuite(groups[0]);
}
if (groups.length > 1) {
this.suite(groups[1]);
}
if (groups.length > 2) {
this.subSuite(groups[2]);
}
if (groups.length > 3) {
this.currentTest.name =
groups.slice(3).join(' > ') + '>>' + this.currentTest.name;
}
}
// todo type

@@ -150,19 +167,2 @@ endTest(spec) {

}
applyGroupping() {
const groups = this.groupNameStack;
this.addPackage(groups.join('.'));
if (groups.length > 0) {
this.parentSuite(groups[0]);
}
if (groups.length > 1) {
this.suite(groups[1]);
}
if (groups.length > 2) {
this.subSuite(groups[2]);
}
if (groups.length > 3) {
// todo: addition to test name
// this.subSuite(groups.slice(3).join(' > '));
}
}
endGroup() {

@@ -267,7 +267,2 @@ if (!this.currentGroup) {

}
addPackageByTestPath(relativeFrom, spec) {
const relativePath = path_1.relative(relativeFrom, spec.testPath);
this.addPackage(relativePath);
return this;
}
addParameter(name, value) {

@@ -274,0 +269,0 @@ this.currentExecutable.addParameter(name, value);

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc