fix: snapshots feedback

This commit is contained in:
Nuno Maduro
2025-07-06 14:29:18 +01:00
parent 9d0410ee0b
commit 0355119afc
4 changed files with 4 additions and 12 deletions

View File

@ -438,15 +438,7 @@ trait Testable
return; return;
} }
if (count($this->__snapshotChanges) === 1) { $this->markTestIncomplete(implode('. ', $this->__snapshotChanges));
$this->markTestIncomplete($this->__snapshotChanges[0]);
return;
}
$messages = implode(PHP_EOL, array_map(static fn (string $message): string => '- $message', $this->__snapshotChanges));
$this->markTestIncomplete($messages);
} }
/** /**

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string function version(): string
{ {
return '4.0.0-alpha.4'; return '4.0.0-alpha.5';
} }
function testDirectory(string $file = ''): string function testDirectory(string $file = ''): string

View File

@ -1,5 +1,5 @@
Pest Testing Framework 4.0.0-alpha.4. Pest Testing Framework 4.0.0-alpha.5.
USAGE: pest <file> [options] USAGE: pest <file> [options]

View File

@ -1,3 +1,3 @@
Pest Testing Framework 4.0.0-alpha.4. Pest Testing Framework 4.0.0-alpha.5.