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.13 to 0.2.14

8

dist/AllureReporter.d.ts
/// <reference types="node" />
import { Allure, AllureGroup, AllureStep, AllureTest, Attachment, Category, ContentType, ExecutableItemWrapper, IAllureConfig, LinkType, Stage, Status, StepInterface, Severity } from 'allure-js-commons';
import { AllureReporterApi } from './index';
import { AllureReporterApi, jasmine } from './index';
export declare const dateStr: () => string;

@@ -19,3 +19,3 @@ export declare class AllureReporter extends Allure implements AllureReporterApi {

startGroup(name: string): void;
startTest(spec: any): void;
startTest(spec: jasmine.CustomReporterResult): void;
startStep(name: string, start?: number): AllureStep;

@@ -25,3 +25,3 @@ endStep(status?: Status, stage?: Stage, end?: number): void;

private applyGroupping;
endTest(spec: any): void;
endTest(spec: jasmine.CustomReporterResult): void;
get currentStep(): AllureStep | null;

@@ -41,3 +41,3 @@ writeCategories(categories: Category[]): void;

addParameters(...params: [string, any][]): this;
addTestPathParameter(relativeFrom: string, spec: any): this;
addTestPathParameter(relativeFrom: string, spec: jasmine.CustomReporterResult): this;
addLink(options: {

@@ -44,0 +44,0 @@ name?: string;

@@ -5,8 +5,29 @@ /// <reference types="node" />

import { AllureStep, Attachment, Category, ContentType, LinkType, Severity, Stage, Status, StepInterface } from 'allure-js-commons';
export declare namespace jasmine {
function getEnv(): any;
interface CustomReporter {
jasmineStarted?(suiteInfo: any): void;
suiteStarted?(result: CustomReporterResult): void;
specStarted?(result: CustomReporterResult): void;
specDone?(result: CustomReporterResult): void;
suiteDone?(result: CustomReporterResult): void;
jasmineDone?(runDetails: any): void;
}
interface CustomReporterResult {
description: string;
failedExpectations?: any[];
fullName: string;
testPath: string;
id: string;
passedExpectations?: any[];
pendingReason?: string;
status?: string;
}
}
export interface AllureReporterApi {
startGroup(name: string): void;
startTest(spec: any): void;
startTest(spec: jasmine.CustomReporterResult): void;
startStep(name: string, start?: number): AllureStep;
endStep(status?: Status, stage?: Stage, end?: number): void;
endTest(spec: any): void;
endTest(spec: jasmine.CustomReporterResult): void;
writeCategories(categories: Category[]): void;

@@ -23,3 +44,3 @@ endGroup(): void;

addParameters(...params: [string, any][]): this;
addTestPathParameter(relativeFrom: string, spec: any): this;
addTestPathParameter(relativeFrom: string, spec: jasmine.CustomReporterResult): this;
addLink(options: {

@@ -26,0 +47,0 @@ name?: string;

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

import { AllureReporterApi } from './index';
export declare namespace jasmine {
function getEnv(): any;
interface CustomReporter {
jasmineStarted?(suiteInfo: any): void;
suiteStarted?(result: CustomReporterResult): void;
specStarted?(result: CustomReporterResult): void;
specDone?(result: CustomReporterResult): void;
suiteDone?(result: CustomReporterResult): void;
jasmineDone?(runDetails: any): void;
}
interface CustomReporterResult {
description: string;
failedExpectations?: any[];
fullName: string;
id: string;
passedExpectations?: any[];
pendingReason?: string;
status?: string;
}
}
import { AllureReporterApi, jasmine } from './index';
export declare class JasmineAllureReporter implements jasmine.CustomReporter {

@@ -23,0 +3,0 @@ private allure;

@@ -5,2 +5,23 @@ "use strict";

const path_1 = require("path");
/*
export declare namespace jasmine {
function getEnv(): any;
interface CustomReporter {
jasmineStarted?(suiteInfo: any): void;
suiteStarted?(result: CustomReporterResult): void;
specStarted?(result: CustomReporterResult): void;
specDone?(result: CustomReporterResult): void;
suiteDone?(result: CustomReporterResult): void;
jasmineDone?(runDetails: any): void;
}
interface CustomReporterResult {
description: string;
failedExpectations?: any[];
fullName: string;
id: string;
passedExpectations?: any[];
pendingReason?: string;
status?: string;
}
}*/
class JasmineAllureReporter {

@@ -7,0 +28,0 @@ constructor(allure) {

import { AllureReporter } from './AllureReporter';
import { AllureReporterApi } from './index';
export declare namespace jasmine {
function getEnv(): any;
interface CustomReporter {
jasmineStarted?(suiteInfo: any): void;
suiteStarted?(result: CustomReporterResult): void;
specStarted?(result: CustomReporterResult): void;
specDone?(result: CustomReporterResult): void;
suiteDone?(result: CustomReporterResult): void;
jasmineDone?(runDetails: any): void;
}
interface CustomReporterResult {
description: string;
failedExpectations?: any[];
fullName: string;
id: string;
passedExpectations?: any[];
pendingReason?: string;
status?: string;
}
}
import { AllureReporterApi, jasmine } from './index';
export declare function registerAllureReporter(jasmineCustom?: (r: AllureReporterApi) => jasmine.CustomReporter): void;

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

@@ -6,6 +6,7 @@ "use strict";

const JasmineAllureReporter_1 = require("./JasmineAllureReporter");
const index_1 = require("./index");
function registerAllureReporter(jasmineCustom) {
const reporter = (global.reporter = new AllureReporter_1.AllureReporter());
// (global as any).reporter = new AllureReporter();
jasmine
index_1.jasmine
.getEnv()

@@ -12,0 +13,0 @@ .addReporter(jasmineCustom

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