Update dist/index.js

This commit is contained in:
Michal Dorner 2021-02-24 21:35:06 +01:00
parent 2d842d6ac6
commit 63dddc9ecc
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
2 changed files with 4 additions and 3 deletions

5
dist/index.js generated vendored
View file

@ -914,6 +914,7 @@ class MochaJsonParser {
return new test_results_1.TestRunResult(resultsPath, suites, mocha.stats.duration); return new test_results_1.TestRunResult(resultsPath, suites, mocha.stats.duration);
} }
processTest(suite, test, result) { processTest(suite, test, result) {
var _a;
const groupName = test.fullTitle !== test.title const groupName = test.fullTitle !== test.title
? test.fullTitle.substr(0, test.fullTitle.length - test.title.length).trimEnd() ? test.fullTitle.substr(0, test.fullTitle.length - test.title.length).trimEnd()
: null; : null;
@ -923,7 +924,7 @@ class MochaJsonParser {
suite.groups.push(group); suite.groups.push(group);
} }
const error = this.getTestCaseError(test); const error = this.getTestCaseError(test);
const testCase = new test_results_1.TestCaseResult(test.title, result, test.duration, error); const testCase = new test_results_1.TestCaseResult(test.title, result, (_a = test.duration) !== null && _a !== void 0 ? _a : 0, error);
group.tests.push(testCase); group.tests.push(testCase);
} }
getTestCaseError(test) { getTestCaseError(test) {
@ -1001,7 +1002,7 @@ function getAnnotations(results, maxCount) {
errors.push({ errors.push({
testRunPaths: [tr.path], testRunPaths: [tr.path],
suiteName: ts.name, suiteName: ts.name,
testName: tc.name, testName: tg.name ? `${tg.name}${tc.name}` : tc.name,
details: err.details, details: err.details,
message: (_d = (_c = err.message) !== null && _c !== void 0 ? _c : getFirstNonEmptyLine(err.details)) !== null && _d !== void 0 ? _d : 'Test failed', message: (_d = (_c = err.message) !== null && _c !== void 0 ? _c : getFirstNonEmptyLine(err.details)) !== null && _d !== void 0 ? _d : 'Test failed',
path, path,

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long