Skip to content

Commit

Permalink
Update StaticSiteServiceTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 11, 2024
1 parent 88b35eb commit af53a41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/framework/tests/Feature/StaticSiteServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,12 @@ public function testNodeActionOutputs()
{
Process::fake();

$this->artisan('build --run-prettier --run-dev --run-prod')
$this->artisan('build --run-prettier --run-vite')
->expectsOutput('Prettifying code! This may take a second.')
->expectsOutput('Building frontend assets for development! This may take a second.')
->expectsOutput('Building frontend assets for production! This may take a second.')
->expectsOutput('Building frontend assets with Vite! This may take a second.')
->assertExitCode(0);

Process::assertRan(fn ($process) => $process->command === 'npx prettier '.Hyde::pathToRelative(Hyde::sitePath()).'/**/*.html --write --bracket-same-line');
Process::assertRan(fn ($process) => $process->command === 'npm run dev');
Process::assertRan(fn ($process) => $process->command === 'npm run build');
}

Expand Down

0 comments on commit af53a41

Please sign in to comment.