Skip to content

Commit

Permalink
refactor: implement again
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 5, 2023
1 parent c28f7bc commit f3ac0fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runner/src/utils/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export function interpretTaskModes(suite: Suite, namePattern?: string | RegExp,
}

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

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

0 comments on commit f3ac0fb

Please sign in to comment.