diff --git a/tests/Pest.php b/tests/Pest.php index 4d66b10..6885ad5 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -18,10 +18,6 @@ pest()->extend(TestCase::class) ->use(RefreshDatabase::class) ->in('Feature'); -beforeEach(function () { - $this->withoutVite(); -})->in('Feature'); - /* |-------------------------------------------------------------------------- | Expectations diff --git a/tests/TestCase.php b/tests/TestCase.php index fe1ffc2..388f6b5 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -6,5 +6,10 @@ use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { - // + protected function setUp(): void + { + parent::setUp(); + + $this->withoutVite(); + } }