But my own test case is never apply because my test file is outside "tests" directory.
I want to keep "tests" directory but also have tests located in "app" directory.
In my case, I got error: Target [App\Banishment\BanishmentRepositoryContract] is not instantiable.
What Happened
I want to to put tests next to what they're testing like Angular, NestJS. You can read this article: https://morrislaptop.medium.com/put-tests-next-to-what-theyre-testing-in-laravel-acd01d357d81
But my own test case is never apply because my test file is outside "tests" directory. I want to keep "tests" directory but also have tests located in "app" directory.
In my case, I got error: Target [App\Banishment\BanishmentRepositoryContract] is not instantiable.
The same test in "tests/Feature" works.
How to Reproduce
In ./phpunit.xml add "App" test suite:
In ./tests.Pest.php add "App" for test case:
Create a test in "app" directory who require
TestCase::class
.Sample Repository
No response
Pest Version
2.32.2
PHP Version
8.1.20
Operation System
Linux
Notes
No response