From 4b4474dd7731397d7e104ba3cdb9865e5dd670d7 Mon Sep 17 00:00:00 2001 From: Sergio Peris <22801379+sertxudev@users.noreply.github.com> Date: Thu, 17 Sep 2026 12:49:34 +0200 Subject: [PATCH] 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> --- src/Plugins/Tia/Baselines/BaseRemote.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Plugins/Tia/Baselines/BaseRemote.php b/src/Plugins/Tia/Baselines/BaseRemote.php index 659d5f48..107adf90 100644 --- a/src/Plugins/Tia/Baselines/BaseRemote.php +++ b/src/Plugins/Tia/Baselines/BaseRemote.php @@ -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