Update dist/index.js

This commit is contained in:
Michal Dorner 2022-11-13 13:22:18 +01:00
parent 48bf7af48b
commit 3b54f63d95
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C

3
dist/index.js generated vendored
View file

@ -1163,6 +1163,9 @@ class JestJunitParser {
return new test_results_1.TestRunResult(path, suites, time); return new test_results_1.TestRunResult(path, suites, time);
} }
getGroups(suite) { getGroups(suite) {
if (!suite.testcase) {
return [];
}
const groups = []; const groups = [];
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);