From d29997d5b06e21d8d8d76a9b83db3e17fbd93cce Mon Sep 17 00:00:00 2001 From: Nick Haynes Date: Mon, 29 Jan 2024 19:03:06 -0600 Subject: [PATCH] fix: updates Only plugin to check for CI environment --- src/Plugins/Only.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Plugins/Only.php b/src/Plugins/Only.php index 95bc3ca3..3fe161af 100644 --- a/src/Plugins/Only.php +++ b/src/Plugins/Only.php @@ -40,6 +40,10 @@ public function terminate(): void */ 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';