Skip to content

Commit

Permalink
fix: testNamePattern adds leading space
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jul 21, 2024
1 parent f68453f commit e41c07c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runner/src/utils/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export function interpretTaskModes(
}

function getTaskFullName(task: TaskBase): string {
return `${task.suite ? `${getTaskFullName(task.suite)} ` : ''}${task.name}`
const suiteName = task.suite ? getTaskFullName(task.suite) : null

return `${suiteName ? `${suiteName} ` : ''}${task.name}`
}

export function someTasksAreOnly(suite: Suite): boolean {
Expand Down

0 comments on commit e41c07c

Please sign in to comment.