Ah! Found this post https://github.com/laravel/framework/issues/42991#issuecomment-1171776543
protected function setUp(): void
{
parent::setUp();
$this->withoutVite(); //Fixes it :D
}
Summer Sale! All accounts are 50% off this week.
Has anyone gotten the new vite implementation to work on github actions. I am getting this error
Vite manifest not found at: /home/runner/work/myproj/myproj/public/build/manifest.json
I'm thinking I can perhaps make some "fix" by adding an extra task to add a dummy file, but I was hoping there is build in way of handling this.
@sinnbeck You can add a setUp method to your base TestCase to “fake” Vite:
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected function setUp(): void
{
parent::setUp();
$this->withoutVite();
}
}
(There’s also a withoutMix method that does the same but for, well, Mix.)
Please or to participate in this conversation.