Closed
Description
API Platform version(s) affected: 4.1.0 and 4.1.1
Description
I have a Modular architecture in my laravel project.
app/Modules/ExampleModule
app/Modules/ExampleModule2
...
Each modules have unit testing with PestPhp.
app/Modules/ExampleModule/tests/
app/Modules/ExampleModule2/tests/
Since the 4.1 there is the tagged interfaces that has been added in the tagServices
Unfortunately Laravel try to discover the files in the Test Folder, creating this error during the composer autoload
command
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Pest\Exceptions\InvalidPestCommand
Please run [./vendor/bin/pest] instead.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
How to reproduce
Create the tree in app
app/Modules/ExampleModule/tests/Feature/Test.php
here the test but it's not relevant
use Tests\TestCase;
pest()->extend(TestCase::class);
it('Test description', function () {}
}
Metadata
Metadata
Assignees
Labels
No labels