diff --git a/src/NewCommand.php b/src/NewCommand.php index c4f47f8d..eeaddfb3 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -254,7 +254,7 @@ protected function installJetstream(string $directory, string $stack, string $te $commands = array_filter([ $this->findComposer().' require laravel/jetstream', trim(sprintf( - PHP_BINARY.' artisan jetstream:install %s %s %s', + PHP_BINARY.' artisan jetstream:install %s %s %s %s', $stack, $teams ? '--teams' : '', $dark ? '--dark' : '', @@ -366,12 +366,14 @@ protected function installPest(string $directory, InputInterface $input, OutputI chdir($directory); $commands = array_filter([ - $this->findComposer().' remove nunomaduro/collision phpunit/phpunit --dev', - $this->findComposer().' require nunomaduro/collision:^6.4 pestphp/pest:^1.22 pestphp/pest-plugin-laravel:^1.4 --dev', - PHP_BINARY.' artisan pest:install --no-interaction', + $this->findComposer().' remove phpunit/phpunit --dev', + $this->findComposer().' require pestphp/pest:^2.0 pestphp/pest-plugin-laravel:^2.0 --dev', + PHP_BINARY.' ./vendor/bin/pest --init', ]); - $this->runCommands($commands, $input, $output); + $this->runCommands($commands, $input, $output, [ + 'PEST_NO_SUPPORT' => 'true', + ]); $this->replaceFile( 'pest/Feature.php', diff --git a/stubs/pest/Unit.php b/stubs/pest/Unit.php index dc82b152..44a4f337 100644 --- a/stubs/pest/Unit.php +++ b/stubs/pest/Unit.php @@ -1,5 +1,5 @@ toBeTrue(true); + expect(true)->toBeTrue(); });