Skip to content

Commit 54a477a

Browse files
authored
Use pest command in github workflow when using pest (#401)
* Update NewCommand.php * Update NewCommand.php
1 parent 5c4462e commit 54a477a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NewCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,14 @@ protected function installPest(string $directory, InputInterface $input, OutputI
590590
$directory.'/tests/Unit/ExampleTest.php',
591591
);
592592

593+
if ($input->getOption('react') || $input->getOption('vue') || $input->getOption('livewire')) {
594+
$this->replaceInFile(
595+
'./vendor/bin/phpunit',
596+
'./vendor/bin/pest',
597+
directory.'/.github/workflows/tests.yml',
598+
);
599+
}
600+
593601
if (($input->getOption('react') || $input->getOption('vue') || $input->getOption('livewire')) && $input->getOption('phpunit')) {
594602
$this->deleteFile($directory.'/tests/Pest.php');
595603
}

0 commit comments

Comments
 (0)