diff --git a/src/Repositories/SnapshotRepository.php b/src/Repositories/SnapshotRepository.php index 7725cc13..89a4135e 100644 --- a/src/Repositories/SnapshotRepository.php +++ b/src/Repositories/SnapshotRepository.php @@ -49,7 +49,9 @@ final class SnapshotRepository throw ShouldNotHappen::fromMessage('Snapshot file could not be read.'); } - return [$snapshotFilename, $contents]; + $snapshot = str_replace(dirname($this->testsPath).'/', '', $snapshotFilename); + + return [$snapshot, $contents]; } /**