Level 102
Disable vite in tests https://laravel.com/docs/9.x/vite#disabling-vite-in-tests
1 like
Summer Sale! All accounts are 50% off this week.
I have a new project set up usign Laravel 9, Inertia and Vue 3. When I run the test suite I get the following message:
user@MacBook-Pro listable % ./vendor/bin/phpunit
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
.F 2 / 2 (100%)
Time: 00:00.487, Memory: 26.00 MB
There was 1 failure:
1) Tests\Feature\ExampleTest::test_the_application_returns_a_successful_response
Expected response status code [200] but received 500.
Failed asserting that 200 is identical to 500.
The following exception occurred during the last request:
Exception: Vite manifest not found at: /Users/.../public/build/manifest.json in
/Users/.../vendor/laravel/framework/src/Illuminate/Foundation/Vite.php:683
Disable vite in tests https://laravel.com/docs/9.x/vite#disabling-vite-in-tests
Please or to participate in this conversation.