From cf5275293fe693ec2cf4dbadbadae01daaa08169 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 20 Jul 2023 13:47:23 -0500 Subject: [PATCH] fix: snapshots directory --- src/TestSuite.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TestSuite.php b/src/TestSuite.php index 0baf4586..3504e764 100644 --- a/src/TestSuite.php +++ b/src/TestSuite.php @@ -76,8 +76,10 @@ final class TestSuite $this->afterEach = new AfterEachRepository(); $this->afterAll = new AfterAllRepository(); $this->rootPath = (string) realpath($rootPath); - - $this->snapshots = new SnapshotRepository($this->rootPath.'/'.$this->testPath, '.pest/snapshots'); + $this->snapshots = new SnapshotRepository( + implode(DIRECTORY_SEPARATOR, [$this->rootPath, $this->testPath]), + implode(DIRECTORY_SEPARATOR, ['.pest', 'snapshots']), + ); } /**