Add build of the last changes

This commit is contained in:
luisito666 2022-10-20 11:06:25 -05:00
parent 40d9ace8d8
commit c0c211fd68
2 changed files with 5 additions and 2 deletions

5
dist/index.js generated vendored
View file

@ -931,6 +931,7 @@ class GoJunitParser {
});
}
getTestRunResult(path, junit) {
var _a;
const suites = junit.testsuites.testsuite === undefined
? []
: junit.testsuites.testsuite.map(ts => {
@ -939,7 +940,9 @@ class GoJunitParser {
const sr = new test_results_1.TestSuiteResult(name, this.getGroups(ts), time);
return sr;
});
const time = parseFloat(junit.testsuites.$.time) * 1000;
const time = ((_a = junit.testsuites.$) === null || _a === void 0 ? void 0 : _a.time) === undefined
? undefined
: parseFloat(junit.testsuites.$.time) * 1000;
return new test_results_1.TestRunResult(path, suites, time);
}
getGroups(suite) {