build & package

This commit is contained in:
dominicmh 2024-04-12 21:32:40 +02:00
parent cacdfc564b
commit 9d4bb43029

6
dist/index.js generated vendored
View file

@ -558,7 +558,7 @@ class DartJsonParser {
group.tests.push(test);
tests[evt.test.id] = test;
}
else if ((0, dart_json_types_1.isTestDoneEvent)(evt) && !evt.hidden && tests[evt.testID]) {
else if ((0, dart_json_types_1.isTestDoneEvent)(evt) && tests[evt.testID]) {
tests[evt.testID].testDone = evt;
}
else if ((0, dart_json_types_1.isErrorEvent)(evt) && tests[evt.testID]) {
@ -585,7 +585,9 @@ class DartJsonParser {
groups.sort((a, b) => { var _a, _b; return ((_a = a.group.line) !== null && _a !== void 0 ? _a : 0) - ((_b = b.group.line) !== null && _b !== void 0 ? _b : 0); });
return groups.map(group => {
group.tests.sort((a, b) => { var _a, _b; return ((_a = a.testStart.test.line) !== null && _a !== void 0 ? _a : 0) - ((_b = b.testStart.test.line) !== null && _b !== void 0 ? _b : 0); });
const tests = group.tests.map(tc => {
const tests = group.tests
.filter(tc => { var _a; return !((_a = tc.testDone) === null || _a === void 0 ? void 0 : _a.hidden); })
.map(tc => {
const error = this.getError(suite, tc);
const testName = group.group.name !== undefined && tc.testStart.test.name.startsWith(group.group.name)
? tc.testStart.test.name.slice(group.group.name.length).trim()