mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fixes missing condition
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user