File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public function getWorkingDirPath(): string
82
82
if (static ::$ customWorkingDirPath !== null && ($ path = realpath (static ::$ customWorkingDirPath )) !== false ) {
83
83
return $ path ;
84
84
}
85
+
85
86
return realpath (dirname (__DIR__ ) . '/bin ' );
86
87
}
87
88
Original file line number Diff line number Diff line change 3
3
use Spatie \ShikiPhp \Shiki ;
4
4
use function Spatie \Snapshots \assertMatchesSnapshot ;
5
5
6
- beforeEach (fn () => Shiki::setCustomWorkingDirPath (__DIR__ . '/testfiles/alt-bin ' ));
6
+ beforeEach (fn () => Shiki::setCustomWorkingDirPath (__DIR__ . '/testfiles/alt-bin ' ));
7
7
8
8
it ('can verify the custom CWD path and modify it ' , function () {
9
9
expect ((new Shiki ())->getWorkingDirPath ())
Original file line number Diff line number Diff line change 3
3
use Spatie \ShikiPhp \Shiki ;
4
4
use function Spatie \Snapshots \assertMatchesSnapshot ;
5
5
6
- beforeAll (fn () => Shiki::setCustomWorkingDirPath (null ));
6
+ beforeAll (fn () => Shiki::setCustomWorkingDirPath (null ));
7
7
8
8
it ('can get the default workingDirPath ' , function () {
9
9
expect ((new Shiki ())->getWorkingDirPath ())
You can’t perform that action at this time.
0 commit comments