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; }