This commit is contained in:
Pierre Chalamet 2025-10-25 11:54:26 +02:00 committed by GitHub
commit 4dec797f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 37 additions and 18 deletions

3
dist/index.js generated vendored
View file

@ -2023,7 +2023,7 @@ function getBadge(passed, failed, skipped, options) {
}
const hint = failed > 0 ? 'Tests failed' : 'Tests passed successfully';
const uri = encodeURIComponent(`${options.badgeTitle}-${message}-${color}`);
return `![${hint}](https://img.shields.io/badge/${uri})`;
return `[![${hint}](https://img.shields.io/badge/${uri})](#user-content-test-report)`;
}
function getTestRunsReport(testRuns, options) {
const sections = [];
@ -2032,6 +2032,7 @@ function getTestRunsReport(testRuns, options) {
sections.push(`<details><summary>Expand for details</summary>`);
sections.push(` `);
}
sections.push('# <a name="user-content-test-report"></a> Tests report');
if (testRuns.length > 0 || options.onlySummary) {
const tableData = testRuns
.map((tr, originalIndex) => ({ tr, originalIndex }))