Skip to content

Commit

Permalink
Check for livewire before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 12, 2024
1 parent 7d38efd commit 68527c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/AutoDiscoveryHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use InterNACHI\Modular\Support\AutoDiscoveryHelper;
use InterNACHI\Modular\Support\ModuleRegistry;
use InterNACHI\Modular\Tests\Concerns\WritesToAppFilesystem;
use Livewire\Livewire;
use Livewire\LivewireServiceProvider;
use Symfony\Component\Finder\SplFileInfo;

Expand Down Expand Up @@ -197,6 +198,10 @@ public function test_it_finds_event_listeners(): void

public function test_it_finds_livewire_component(): void
{
if (! class_exists(Livewire::class)) {
$this->markTestSkipped('Livewire is not installed.');
}

$this->artisan(MakeLivewire::class, [
'name' => 'TestComponent',
'--module' => $this->module1->name,
Expand Down

0 comments on commit 68527c6

Please sign in to comment.