Skip to content

Commit

Permalink
Refine "all" option in InstallCommand and adjust Pest checks.
Browse files Browse the repository at this point in the history
Remove "pest" from the "all" option in the InstallCommand to align its definition with intended behavior. Adjust logic to ensure Pest setup is handled only when explicitly specified.
  • Loading branch information
HichemTab-tech committed Feb 16, 2025
1 parent 8a33cad commit 7103cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InstallCommand extends Command implements PromptsForMissingInput
{--ssr : Indicates if Inertia SSR support should be installed}
{--typescript : Indicates if TypeScript is preferred for the Inertia stack}
{--eslint : Indicates if ESLint with Prettier should be installed}
{--all : Indicates if All the followings (--dark, --ssr, --typescript, --eslint, --pest) should be installed}
{--all : Indicates if All the followings (--dark, --ssr, --typescript, --eslint) should be installed}
{--composer=global : Absolute path to the Composer binary which should be used to install packages}';

/**
Expand Down Expand Up @@ -87,7 +87,7 @@ protected function installTests()
default => 'default',
};

if ($this->option('pest') || $this->isUsingPest() || $this->option('all')) {
if ($this->option('pest') || $this->isUsingPest()) {
if ($this->hasComposerPackage('phpunit/phpunit')) {
$this->removeComposerPackages(['phpunit/phpunit'], true);
}
Expand Down

0 comments on commit 7103cc4

Please # to comment.