From f49b91ec0df11a6fcaf3a5f326485bce1f86dd19 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 22 Jul 2025 22:31:08 +0100 Subject: [PATCH] fixes missing condition --- src/PendingCalls/TestCall.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index 05bc2f59..55a948e4 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -12,6 +12,7 @@ use Pest\Factories\Attribute; use Pest\Factories\TestCaseMethodFactory; use Pest\Mutate\Repositories\ConfigurationRepository; use Pest\PendingCalls\Concerns\Describable; +use Pest\Plugins\Environment; use Pest\Plugins\Only; use Pest\Support\Backtrace; use Pest\Support\Container; @@ -347,6 +348,12 @@ final class TestCall // @phpstan-ignore-line } } + if (Environment::name() === Environment::CI) { + return $this->skip(sprintf( + 'This test is skipped on [CI].', + )); + } + return $this; }