diff --git a/dist/index.js b/dist/index.js index 23194e9e..75e2141 100644 --- a/dist/index.js +++ b/dist/index.js @@ -381,7 +381,8 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return; - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')); + let runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')); + runName = runName.slice(0, tr.path.indexOf('test/')); req.blocks.push({ type: 'section', text: { diff --git a/src/main.ts b/src/main.ts index dd86117..df6e6c3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -326,7 +326,8 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')) + let runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')) + runName = runName.slice(0, tr.path.indexOf('test/')) req.blocks.push({ type: 'section',