jest-allure
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -0,1 +1,6 @@ | ||
import { Reporter } from "./Reporter"; | ||
export declare function registerAllureReporter(): void; | ||
declare global { | ||
const reporter: Reporter; | ||
} | ||
export declare const reporterz: Reporter; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52135
0
18
361
7
+ Added@types/jest@^22.2.3
+ Added@types/node@^10.1.2
+ Added@types/strip-ansi@^3.0.0
+ Addedtypescript@^2.8.3
+ Added@types/allure-js-commons@0.0.0(transitive)
+ Added@types/jest@22.2.3(transitive)
+ Added@types/node@10.17.60(transitive)
+ Added@types/strip-ansi@3.0.0(transitive)
+ Addedtypescript@2.9.2(transitive)