Skip to content

Commit e97d59e

Browse files
authored
Fix updating failed file snapshots
1 parent 5430ae5 commit e97d59e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MatchesSnapshots.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ protected function doFileSnapshotAssertion(string $filePath)
216216
$fileSystem->copy($filePath, $snapshotId);
217217

218218
$this->registerSnapshotChange("File snapshot updated for {$snapshotId}");
219+
220+
return;
219221
}
220222

221223
$fileSystem->copy($filePath, $failedSnapshotId);

0 commit comments

Comments
 (0)