#9 - set up inertia and tailwind

This commit is contained in:
Adrian Hopek
2022-01-10 15:09:00 +01:00
parent 8f5f2b88f0
commit f0b6e3e97a
18 changed files with 1587 additions and 2354 deletions

View File

@@ -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);
}
}

View 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"));
}
}