Regression: Command gh not found on Windows - #1895 (#1922)

* fixes regression

* Update BaseRemote.php

Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com>

---------

Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com>
This commit is contained in:
Sergio Peris
2026-09-17 12:49:34 +02:00
committed by GitHub
parent 942d6aead1
commit 4b4474dd77
+2 -4
View File
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Pest\Plugins\Tia\Baselines;
use Pest\Plugins\Tia\WatchPatterns;
use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\Process;
/**
@@ -38,10 +39,7 @@ abstract readonly class BaseRemote // @pest-arch-ignore-line
public function cliExists(): bool
{
$process = new Process(['which', $this->cliName()]);
$process->run();
return $process->isSuccessful();
return new ExecutableFinder()->find($this->cliName()) !== null;
}
public function cliAuthenticated(): bool