© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
20 replies
Héctor Q. Torres

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
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();
});
<?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.
FAILED  Tests\Feature\Filament\Resources\ImportResourceTest > it can render the index page                              
BindingResolutionException   
Target class [livewire] does not exist.
Plugins | Pest - The elegant PHP Testing Framework
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.
Plugins | Pest - The elegant PHP Testing Framework
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Target Class Does Not Exist
FilamentFFilament / ❓┊help
3y ago
Target class [filament] does not exist. ?
FilamentFFilament / ❓┊help
2y ago
Target Class [cache] does not exist
FilamentFFilament / ❓┊help
3y ago
Target class [cache] does not exist.
FilamentFFilament / ❓┊help
3y ago