#9 - set up inertia and tailwind
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
public function testExample(): void
|
||||
{
|
||||
$response = $this->get("/");
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
19
tests/Feature/InertiaTest.php
Normal file
19
tests/Feature/InertiaTest.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Inertia\Testing\AssertableInertia as Assert;
|
||||
use Tests\TestCase;
|
||||
|
||||
class InertiaTest extends TestCase
|
||||
{
|
||||
public function testInertia(): void
|
||||
{
|
||||
$response = $this->get("/");
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertInertia(fn(Assert $page) => $page->component("Welcome"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user