Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' : '',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion stubs/pest/Unit.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

test('that true is true', function () {
expect(true)->toBeTrue(true);
expect(true)->toBeTrue();
});