From 62bc5c68de2a6a0d02039763b8c754569df99e3f Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 25 Jan 2023 11:01:56 +0000 Subject: [PATCH] Update from CI --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9f0a854..22761d0 100644 --- a/index.js +++ b/index.js @@ -419,10 +419,10 @@ exports.parseTap = parseTap; function parseJunitXml(xml) { return __awaiter(this, void 0, void 0, function* () { let testsuites; - if (xml.testsuites) { - testsuites = xml.testsuites.testsuite; + if ('testsuites' in xml) { + testsuites = xml.testsuites.testsuite || []; } - else if (xml.testsuite) { + else if ('testsuite' in xml) { testsuites = [xml.testsuite]; } else {