zephyr-import
Advanced tools
Comparing version
@@ -247,3 +247,3 @@ "use strict"; | ||
} | ||
if (!json?.execution?.id) { | ||
if (!json || !json.execution || !json.execution.id) { | ||
console.error("Missing execution ID in response:", json); | ||
@@ -354,3 +354,3 @@ throw new Error("Missing execution ID in response"); | ||
? obj["message"].join(" | ") | ||
: obj["message"]?.toString() ?? ""; | ||
: (obj["message"] && obj["message"].toString()) ?? ""; | ||
const passed = obj["passed"]; | ||
@@ -357,0 +357,0 @@ const pending = obj["pending"]; |
{ | ||
"name": "zephyr-import", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Parsing JSON data and import it to Zephyr as reports of autoamtion testing!", | ||
@@ -5,0 +5,0 @@ "author": "lukaspollak", |
@@ -290,3 +290,3 @@ // get parent dir name of node modules | ||
if (!json?.execution?.id) { | ||
if (!json || !json.execution || !json.execution.id) { | ||
console.error("Missing execution ID in response:", json); | ||
@@ -427,4 +427,5 @@ throw new Error("Missing execution ID in response"); | ||
? obj["message"].join(" | ") | ||
: obj["message"]?.toString() ?? ""; | ||
: (obj["message"] && obj["message"].toString()) ?? ""; | ||
const passed = obj["passed"]; | ||
@@ -431,0 +432,0 @@ const pending = obj["pending"]; |
64013
0.14%