Skip to content

Commit

Permalink
Merge pull request #1082 from nhaynes/fix-ci-flag
Browse files Browse the repository at this point in the history
fix: updates Only plugin to check for CI environment
  • Loading branch information
nunomaduro authored Jan 30, 2024
2 parents 13f340a + d29997d commit b303f9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Plugins/Only.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit b303f9f

Please sign in to comment.