From 526af2a75e9d3fcd28aee47adbe3bef5d7200b2a Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 5 Sep 2024 21:56:48 +0100 Subject: [PATCH] wp --- src/Plugins/Only.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugins/Only.php b/src/Plugins/Only.php index 503f8ed0..0d958173 100644 --- a/src/Plugins/Only.php +++ b/src/Plugins/Only.php @@ -44,12 +44,12 @@ final class Only implements Terminable */ public static function enable(TestCall $testCall, string $group = '__pest_only'): void { + $testCall->group($group); + if (Environment::name() === Environment::CI || Parallel::isWorker()) { return; } - $testCall->group($group); - $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock'; if (file_exists($lockFile) && $group === '__pest_only') {