This commit is contained in:
nuno maduro
2026-05-02 00:06:04 +01:00
parent d0295f6168
commit c4911d046b

View File

@ -861,9 +861,10 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
private function reportAffectedSummary(array $changedFiles, array $affectedFromChanges, array $failedFromCache, array $affected): void private function reportAffectedSummary(array $changedFiles, array $affectedFromChanges, array $failedFromCache, array $affected): void
{ {
$this->output->writeln(''); $this->output->writeln('');
$this->renderChild('TIA mode enabled.');
if ($affected === []) { if ($affected === []) {
$this->renderChild('TIA mode enabled.');
return; return;
} }
@ -903,8 +904,8 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
); );
} }
$this->renderBadge('INFO', sprintf( $this->renderChild(sprintf(
'%d affected test file%s%s.', 'TIA mode enabled / %d affected test file%s%s.',
count($affected), count($affected),
count($affected) === 1 ? '' : 's', count($affected) === 1 ? '' : 's',
$reasons === [] ? '' : ' ('.implode(', ', $reasons).')', $reasons === [] ? '' : ' ('.implode(', ', $reasons).')',
@ -916,7 +917,7 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
$preview = array_slice($sorted, 0, $previewLimit); $preview = array_slice($sorted, 0, $previewLimit);
foreach ($preview as $file) { foreach ($preview as $file) {
$this->output->writeln(sprintf(' <fg=gray>%s</>', $file)); $this->output->writeln(sprintf(' <fg=gray>%s</>', $file));
} }
$remainder = count($sorted) - count($preview); $remainder = count($sorted) - count($preview);