Skip to content

Commit 5f10318

Browse files
committed
refactor: streamline Pest configuration by extending TestCase and using multiple contexts
1 parent 310d56e commit 5f10318

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/Pest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Foundation\Testing\RefreshDatabase;
66
use Tests\Feature\AuthenticationSupport;
7+
use Tests\TestCase;
78

89
/*
910
|--------------------------------------------------------------------------
@@ -16,8 +17,10 @@
1617
|
1718
*/
1819

19-
uses(Tests\TestCase::class, RefreshDatabase::class, AuthenticationSupport::class)->in(__DIR__.'/../contexts/*/Tests/Feature');
20-
uses(Tests\TestCase::class, RefreshDatabase::class, AuthenticationSupport::class)->in(__DIR__.'/../tests/Feature');
20+
pest()
21+
->extends(TestCase::class)
22+
->use(RefreshDatabase::class, AuthenticationSupport::class)
23+
->in(__DIR__.'/../contexts/*/Tests/Feature', __DIR__.'/../tests/Feature');
2124

2225
/*
2326
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)