From 3b54f63d958d702095c7959fd8e1ba59fee51061 Mon Sep 17 00:00:00 2001 From: Michal Dorner <dorner.michal@gmail.com> Date: Sun, 13 Nov 2022 13:22:18 +0100 Subject: [PATCH] Update dist/index.js --- dist/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/index.js b/dist/index.js index dcb19c3..f9222d3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1163,6 +1163,9 @@ class JestJunitParser { return new test_results_1.TestRunResult(path, suites, time); } getGroups(suite) { + if (!suite.testcase) { + return []; + } const groups = []; for (const tc of suite.testcase) { let grp = groups.find(g => g.describe === tc.$.classname);