@mmisty/cypress-tags
Advanced tools
Comparing version 1.0.16 to 1.0.17
{ | ||
"name": "@mmisty/cypress-tags", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Parses tags from test/suite title or/and from cypress configuration object into test .tags object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,3 +87,3 @@ "use strict"; | ||
// for tests that doesn't have parent suite | ||
if (test.parent && test.parent.title === '' && !test.parent.parent) { | ||
if (test && test.parent && test.parent.title === '' && !test.parent.parent) { | ||
testProcess(test); | ||
@@ -99,3 +99,3 @@ } | ||
// do only for root suite | ||
if (((_a = suite.parent) === null || _a === void 0 ? void 0 : _a.title) === '') { | ||
if (suite && ((_a = suite.parent) === null || _a === void 0 ? void 0 : _a.title) === '') { | ||
suite.eachTest((st) => { | ||
@@ -102,0 +102,0 @@ testProcess(st); |
17977
17
340