diff --git a/dist/index.js b/dist/index.js index d1162f4..3a62d7e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2115,6 +2115,9 @@ function getTestsReport(ts, runIndex, suiteIndex, options) { } const space = grp.name ? ' ' : ''; for (const tc of grp.tests) { + if (options.listTests === 'failed' && tc.result !== 'failed') { + continue; + } const result = getResultIcon(tc.result); sections.push(`${space}${result} ${tc.name}`); if (tc.error) {