Skip to content

Commit

Permalink
fix: returns relative path from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 17, 2023
1 parent c57ed62 commit f9da55d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Repositories/SnapshotRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function get(TestCase $testCase, string $description): array
throw ShouldNotHappen::fromMessage('Snapshot file could not be read.');
}

return [$snapshotFilename, $contents];
$snapshot = str_replace(dirname($this->testsPath).'/', '', $snapshotFilename);

return [$snapshot, $contents];
}

/**
Expand Down

0 comments on commit f9da55d

Please sign in to comment.