get('/'); $response->assertStatus(200); $response->assertSee('
', false); }); it('serves the spa shell for unknown frontend paths', function (): void { $response = $this->get('/some/frontend/route'); $response->assertStatus(200); $response->assertSee('
', false); }); it('does not intercept api routes', function (): void { $response = $this->get('/api/stations'); // API route handles it (403 from missing key, not SPA HTML) $response->assertStatus(403); $response->assertJson(['message' => '']); });