From 9b92097e9fa7bc4f796bd6691a61c5ac377b9122 Mon Sep 17 00:00:00 2001 From: Aart Jan Kaptijn Date: Tue, 23 Nov 2021 17:46:26 +0100 Subject: [PATCH] trim names --- src/report/get-report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/get-report.ts b/src/report/get-report.ts index 030cfe7..b95d04f 100644 --- a/src/report/get-report.ts +++ b/src/report/get-report.ts @@ -187,7 +187,7 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt [Align.Left, Align.Right, Align.Right, Align.Right, Align.Right], ...suites.map((s, suiteIndex) => { const tsTime = formatTime(s.time) - const tsName = s.name + const tsName = s.name.startsWith(name) ? s.name.slice(name.length) : s.name const skipLink = options.listTests === 'none' || (options.listTests === 'failed' && s.result !== 'failed') const tsAddr = options.baseUrl + makeSuiteSlug(runIndex, suiteIndex).link const tsNameLink = skipLink ? tsName : link(tsName, tsAddr)