Socket
Socket
Sign inDemoInstall

jest-allure

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-allure - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/Reporter.d.ts

5

dist/setup.d.ts

@@ -0,1 +1,6 @@

import { Reporter } from "./Reporter";
export declare function registerAllureReporter(): void;
declare global {
const reporter: Reporter;
}
export declare const reporterz: Reporter;

4

dist/setup.js

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

const strip_ansi_1 = __importDefault(require("strip-ansi"));
const Reporter_1 = require("./Reporter");
class JasmineAllureReporter {

@@ -44,3 +45,4 @@ constructor(allure) {

function registerAllureReporter() {
const allure = global.allure = new allure_js_commons_1.default();
const allure = new allure_js_commons_1.default();
const reporter = global.reporter = new Reporter_1.Reporter(allure);
jasmine.getEnv().addReporter(new JasmineAllureReporter(allure));

@@ -47,0 +49,0 @@ }

{
"name": "jest-allure",
"version": "0.0.2",
"version": "0.0.3",
"description": "Allure Reports for jest",
"main": "dist/index",
"types": "dist/index",
"types": "./dist/setup.d.ts",
"repository": "git@github.com:zaqqaz/jest-allure.git",
"author": "Denis Artyuhovich <dartyuhovich@evolutiongaming.com>",
"license": "MIT",
"devDependencies": {
"@types/jasmine": "^2.8.7",
"keywords": [
"jest",
"report",
"reports",
"allure",
"e2e",
"tests",
"screenshots"
],
"dependencies": {
"@types/allure-js-commons": "^0.0.0",
"@types/jest": "^22.2.3",
"@types/node": "^10.1.2",
"@types/strip-ansi": "^3.0.0",
"allure-js-commons": "^1.3.2",
"strip-ansi": "^4.0.0",
"typescript": "^2.8.3"
},
"dependencies": {
"allure-js-commons": "^1.3.2",
"strip-ansi": "^4.0.0"
}
}
import Allure from "allure-js-commons";
import stripAnsi from "strip-ansi";
import { Reporter } from "./Reporter";
class JasmineAllureReporter implements jasmine.CustomReporter{
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 implements jasmine.CustomReporter {
private allure: Allure;

@@ -44,3 +66,4 @@

export function registerAllureReporter() {
const allure = (global as any).allure = new Allure();
const allure = new Allure();
const reporter = (global as any).reporter = new Reporter(allure);
jasmine.getEnv().addReporter(new JasmineAllureReporter(allure));

@@ -50,1 +73,7 @@ }

registerAllureReporter();
declare global {
export const reporter: Reporter;
}
export declare const reporterz: Reporter;

@@ -14,4 +14,4 @@ {

"esModuleInterop": true,
"typeRoots": ["node_modules/@types", "./types"]
"typeRoots": ["node_modules/@types"]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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