Class "..." not found in tests

Im using Pest to do some testing, however, my classes cannot be found.
In: tests/ I have a test file, that includes the following code:
<?php

use TheThunderTurner\FilamentLatex\Database\Factories\FilamentLatexFactory;
use TheThunderTurner\FilamentLatex\Resources\FilamentLatexResource;

use function Pest\Livewire\livewire;


it('can render LaTeX List', function () {
    $record = FilamentLatexFactory::factory()->create();

    livewire(FilamentLatexResource\Pages\ViewFilamentLatex::class, ['record' => $record])->assertSuccessful();
});

When running pest, I get the error Class "TheThunderTurner\FilamentLatex\Database\Factories\FilamentLatexFactory" not found. Why is it not found? Because the test file doesnt have a namespace? What am I missing?
Thanks
Was this page helpful?