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.2.3 to 0.2.4

dist/AllureReporter.js.map

35

dist/AllureReporter.js

@@ -65,4 +65,2 @@ "use strict";

startGroup(name) {
// todo check currentgroup.startgroup
// todo check empty name
this.runningGroup = this.runtime.startGroup(name);

@@ -80,8 +78,5 @@ let nameGr = name;

}
// todo remove - change name someway
// todo decorators
startTest(spec) {
this.runningTest = this.currentGroup.startTest(spec.description);
this.runningTest.fullName = spec.fullName;
// Capture Jest worker thread for timeline report
if (process.env.JEST_WORKER_ID) {

@@ -99,3 +94,2 @@ this.currentTest.addLabel(allure_js_commons_1.LabelName.THREAD, `${process.env.JEST_WORKER_ID}`);

endStep(status, stage, end) {
// console.log('END:' + JSON.stringify(this.stepNameStack));
const step = this.stepStack.pop();

@@ -105,3 +99,2 @@ this.stepNameStack.pop();

console.log('No step started');
// throw new Error('No step started');
return;

@@ -122,3 +115,2 @@ }

const replaceDot = (name) => {
// todo regexp with \s
if (name.substr(0, 1) === '.') {

@@ -148,3 +140,2 @@ return name.substr(1, name.length - 1);

}
// todo type
endTest(spec) {

@@ -172,3 +163,2 @@ this.endSteps();

}
// Capture exceptions
const exceptionInfo = this.findMessageAboutThrow(spec.failedExpectations) ||

@@ -269,13 +259,2 @@ this.findAnyError(spec.failedExpectations);

logStep(name, status, attachments) {
// console.log('AllureImpl status:', status);
/*const wrappedStep = this.startStep(name);
if (attachments) {
for (const {name, content, type} of attachments) {
this.attachment(name, content, type);
}
}
wrappedStep.logStep(status);
wrappedStep.endStep();*/
}

@@ -317,8 +296,2 @@ attachment(name, content, type) {

var _a;
// todo config
/* options.url ??
(this.config?.issueUri ? this.config.issueUri(options.id) : undefined);*/
/*if (!url) {
throw new Error('Specify url or issueUri in config');
}*/
const link = `${options.url}${options.id}`;

@@ -330,9 +303,2 @@ this.issue((_a = options.name) !== null && _a !== void 0 ? _a : options.id, link);

var _a;
// todo config
// const uri = 'some';
/* options.url ??
(this.config?.tmsUri ? this.config.tmsUri(options.id) : undefined);*/
/*if (!uri) {
throw new Error('Specify url or tmsUri in config');
}*/
const link = `${options.url}${options.id}`;

@@ -400,1 +366,2 @@ this.tms((_a = options.name) !== null && _a !== void 0 ? _a : options.id, link);

exports.AllureReporter = AllureReporter;
//# sourceMappingURL=AllureReporter.js.map

@@ -22,1 +22,2 @@ "use strict";

module.exports = JestAllureReporter;
//# sourceMappingURL=index.js.map

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

const path_1 = require("path");
// export const Categories: Category[] = []; // todo check may not work
class JasmineAllureReporter {

@@ -16,3 +15,2 @@ constructor(allure) {

else {
// case for tests without suite
this.allure.startGroup(path_1.relative(process.cwd(), expect.getState().testPath));

@@ -32,1 +30,2 @@ }

exports.JasmineAllureReporter = JasmineAllureReporter;
//# sourceMappingURL=JasmineAllureReporter.js.map

@@ -11,12 +11,3 @@ "use strict";

exports.registerAllureReporter = registerAllureReporter;
/*
export function addReporter(
jasmineCustom?: (r: AllureReporter) => jasmine.CustomReporter,
) {
// const reporter = ((global as any).reporter = new AllureReporter());
jasmine
.getEnv()
.addReporter(jasmineCustom ?? new JasmineAllureReporter(reporter));
}
*/
registerAllureReporter();
//# sourceMappingURL=setup.js.map
{
"name": "jest-allure2-adapter",
"version": "0.2.3",
"version": "0.2.4",
"description": "Allure 2 Adapter for jest",
"main": "index",
"types": "index.d.ts",
"main": "./dist/index.js",
"repository": "git@github.com:mmisty/jest-allure2-adapter.git",

@@ -8,0 +7,0 @@ "publishConfig": {

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