Update bundle

This commit is contained in:
luisito666 2022-10-18 17:24:04 -05:00
parent 7ab3cf6aaf
commit e8917857c2
2 changed files with 6 additions and 3 deletions

7
dist/index.js generated vendored
View file

@ -943,9 +943,10 @@ class GoJunitParser {
return new test_results_1.TestRunResult(path, suites, time); return new test_results_1.TestRunResult(path, suites, time);
} }
getGroups(suite) { getGroups(suite) {
var _a;
const groups = []; const groups = [];
const returnEmpytGroups = []; const returnEmpytGroups = [];
if (suite.testcase.length === 0) if (!((_a = suite.testcase) === null || _a === void 0 ? void 0 : _a.length))
return returnEmpytGroups; return returnEmpytGroups;
for (const tc of suite.testcase) { for (const tc of suite.testcase) {
let grp = groups.find(g => g.describe === tc.$.classname); let grp = groups.find(g => g.describe === tc.$.classname);
@ -974,10 +975,12 @@ class GoJunitParser {
return 'success'; return 'success';
} }
getTestCaseError(tc) { getTestCaseError(tc) {
var _a;
if (!this.options.parseErrors || !tc.failure) { if (!this.options.parseErrors || !tc.failure) {
return undefined; return undefined;
} }
const details = tc.failure[0]; const failure = (_a = tc.failure) === null || _a === void 0 ? void 0 : _a[0];
const details = (typeof failure === 'object' ? failure._ : failure) || "";
let path; let path;
let line; let line;
const src = (0, node_utils_1.getExceptionSource)(details, this.options.trackedFiles, file => this.getRelativePath(file)); const src = (0, node_utils_1.getExceptionSource)(details, this.options.trackedFiles, file => this.getRelativePath(file));

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long