chore: build dist files

This commit is contained in:
Martin Fillafer 2023-03-08 14:55:54 +01:00
parent 98f7746baa
commit 859f41b552
2 changed files with 7 additions and 5 deletions

4
dist/index.js generated vendored
View file

@ -1211,7 +1211,9 @@ class JestJunitParser {
const sr = new test_results_1.TestSuiteResult(name, this.getGroups(ts), time); const sr = new test_results_1.TestSuiteResult(name, this.getGroups(ts), time);
return sr; return sr;
}); });
const time = parseFloat(junit.testsuites.$.time) * 1000; const time = junit.testsuites.$ === undefined
? suites.reduce((sum, suite) => sum + suite.time, 0)
: parseFloat(junit.testsuites.$.time) * 1000;
return new test_results_1.TestRunResult(path, suites, time); return new test_results_1.TestRunResult(path, suites, time);
} }
getGroups(suite) { getGroups(suite) {