fix(core): tui summary should not show canceled during run-one because tasks are skipped (#31014)
This commit is contained in:
parent
6e1f304898
commit
0a4f682ef7
@ -167,7 +167,7 @@ export function getTuiTerminalSummaryLifeCycle({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
lines = [output.colors.green(lines.join(EOL))];
|
lines = [output.colors.green(lines.join(EOL))];
|
||||||
} else if (totalCompletedTasks + stoppedTasks.size === totalTasks) {
|
} else if (inProgressTasks.size === 0) {
|
||||||
let text = `Ran target ${output.bold(
|
let text = `Ran target ${output.bold(
|
||||||
targets[0]
|
targets[0]
|
||||||
)} for project ${output.bold(initiatingProject)}`;
|
)} for project ${output.bold(initiatingProject)}`;
|
||||||
@ -190,7 +190,7 @@ export function getTuiTerminalSummaryLifeCycle({
|
|||||||
|
|
||||||
const viewLogs = viewLogsFooterRows(totalFailedTasks);
|
const viewLogs = viewLogsFooterRows(totalFailedTasks);
|
||||||
|
|
||||||
lines = [
|
lines.push(
|
||||||
output.colors.red(
|
output.colors.red(
|
||||||
[
|
[
|
||||||
output.applyNxPrefix(
|
output.applyNxPrefix(
|
||||||
@ -209,11 +209,10 @@ export function getTuiTerminalSummaryLifeCycle({
|
|||||||
)}`,
|
)}`,
|
||||||
...viewLogs,
|
...viewLogs,
|
||||||
].join(EOL)
|
].join(EOL)
|
||||||
),
|
)
|
||||||
];
|
);
|
||||||
} else {
|
} else {
|
||||||
lines = [
|
lines.push(
|
||||||
...output.getVerticalSeparatorLines('red'),
|
|
||||||
output.applyNxPrefix(
|
output.applyNxPrefix(
|
||||||
'red',
|
'red',
|
||||||
output.colors.red(
|
output.colors.red(
|
||||||
@ -221,8 +220,8 @@ export function getTuiTerminalSummaryLifeCycle({
|
|||||||
targets[0]
|
targets[0]
|
||||||
)} for project ${output.bold(initiatingProject)}`
|
)} for project ${output.bold(initiatingProject)}`
|
||||||
) + output.dim(` (${timeTakenText})`)
|
) + output.dim(` (${timeTakenText})`)
|
||||||
),
|
)
|
||||||
];
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// adds some vertical space after the summary to avoid bunching against terminal
|
// adds some vertical space after the summary to avoid bunching against terminal
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user