fix: returns relative path from snapshot

This commit is contained in:
Nuno Maduro
2023-06-17 14:01:48 +01:00
parent e541ee86fc
commit 1f6970a5b3

View File

@ -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];
}
/**