Merge pull request #1082 from nhaynes/fix-ci-flag

fix: updates Only plugin to check for CI environment
This commit is contained in:
Nuno Maduro
2024-01-30 14:17:03 +00:00
committed by GitHub

View File

@ -40,6 +40,10 @@ final class Only implements Terminable
*/
public static function enable(TestCall $testCall): void
{
if (Environment::name() == Environment::CI) {
return;
}
$testCall->group('__pest_only');
$lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';