Skip to content

Commit 62bc5c6

Browse files
committed
Update from CI
1 parent 1250fd0 commit 62bc5c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,10 @@ exports.parseTap = parseTap;
419419
function parseJunitXml(xml) {
420420
return __awaiter(this, void 0, void 0, function* () {
421421
let testsuites;
422-
if (xml.testsuites) {
423-
testsuites = xml.testsuites.testsuite;
422+
if ('testsuites' in xml) {
423+
testsuites = xml.testsuites.testsuite || [];
424424
}
425-
else if (xml.testsuite) {
425+
else if ('testsuite' in xml) {
426426
testsuites = [xml.testsuite];
427427
}
428428
else {

0 commit comments

Comments
 (0)