Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

allure-js-parser

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-js-parser - npm Package Compare versions

Comparing version
0.0.8-alpha.4
to
0.0.8-alpha.5
+1
-1
package.json
{
"name": "allure-js-parser",
"version": "0.0.8-alpha.4",
"version": "0.0.8-alpha.5",
"description": "allure-js-parser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,2 +20,3 @@ import { AllureContainer, AllureNode, AllureTest } from '../types';

failOnError?: boolean;
logError?: boolean;
}) => AllureTest[];

@@ -124,10 +124,14 @@ "use strict";

else {
logError(err);
if (err) {
logError(err);
}
}
};
const parseAllure = (directoryPath, config) => {
var _a;
const env = process.env['failOnError'] !== undefined ? process.env.failOnError !== 'false' : false;
const failOnError = (config === null || config === void 0 ? void 0 : config.failOnError) !== undefined ? config.failOnError : env;
const logError = (_a = config === null || config === void 0 ? void 0 : config.logError) !== null && _a !== void 0 ? _a : true;
if (!fs.existsSync(directoryPath)) {
exitWhenFailOnError(failOnError, `No allure-results folder: ${directoryPath}\n`);
exitWhenFailOnError(failOnError, logError ? `No allure-results folder: ${directoryPath}\n` : undefined);
return [];

@@ -139,3 +143,3 @@ }

if (pureTestCases.length === 0) {
exitWhenFailOnError(failOnError, `No allure-results in folder (did you forgot to run tests?). Path '${directoryPath}'`);
exitWhenFailOnError(failOnError, logError ? `No allure-results in folder (did you forgot to run tests?). Path '${directoryPath}'` : undefined);
return [];

@@ -142,0 +146,0 @@ }