From 8ecdb49531741e831bb34aa4305b81cd3de0d414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 28 Sep 2022 16:49:41 +0200 Subject: [PATCH] skip vite test in Laravel < 9 --- tests/Features/ViteBundlerTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Features/ViteBundlerTest.php b/tests/Features/ViteBundlerTest.php index 6b9208be..90e06d78 100644 --- a/tests/Features/ViteBundlerTest.php +++ b/tests/Features/ViteBundlerTest.php @@ -13,6 +13,10 @@ class ViteBundlerTest extends TestCase /** @test */ public function the_vite_helper_uses_our_custom_class() { + if (version_compare(app()->version(), '9.0', '<')) { + $this->markTestSkipped('Vite is only used in Laravel 9+'); + } + $vite = app(\Illuminate\Foundation\Vite::class); $this->assertInstanceOf(FoundationVite::class, $vite);