Target class [livewire] does not exist.

I have installed the Pest Livewire plugin according to the documentation:
https://pestphp.com/docs/plugins#livewire

I set up a TestCase, configuring the default user and panel.

I created the following simple test:

<?php

use App\Filament\App\Resources\ImportResource\Pages\ListImports;

use function Pest\Livewire\livewire;

it('can render the index page', function () {
    livewire(ListImports::class)
        ->assertSuccessful();
});


However, I receive the following error:

FAILED  Tests\Feature\Filament\Resources\ImportResourceTest > it can render the index page                              
BindingResolutionException   
Target class [livewire] does not exist.
In this section, we will discuss the official and community developed plugins that we endorse. Plugins primarily offer namespaced functions, console commands, custom expectations, and additional command-line options to augment the default Pest experience.
Was this page helpful?