Rebuild release index.js file

This commit is contained in:
Jozef Izso 2024-06-25 14:45:12 +02:00
parent 21ae91ed3c
commit 06ae02969c

11
dist/index.js generated vendored
View file

@ -1178,7 +1178,7 @@ class JavaJunitParser {
return 'success'; return 'success';
} }
getTestCaseError(tc) { getTestCaseError(tc) {
var _a; var _a, _b;
if (!this.options.parseErrors) { if (!this.options.parseErrors) {
return undefined; return undefined;
} }
@ -1198,11 +1198,18 @@ class JavaJunitParser {
line = src.line; line = src.line;
} }
} }
let message;
if (typeof failure === 'object') {
message = failure.$.message;
if ((_b = failure.$) === null || _b === void 0 ? void 0 : _b.type) {
message = failure.$.type + ': ' + message;
}
}
return { return {
path: filePath, path: filePath,
line, line,
details, details,
message: typeof failure === 'object' ? failure.message : undefined message
}; };
} }
exceptionThrowSource(stackTrace) { exceptionThrowSource(stackTrace) {