From 084d2bedc1daa3ac9e79ecdfdf59f3d0004c0342 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 11 Apr 2025 09:51:25 +0800 Subject: [PATCH] Add `composer run test` command This prevents the application from running tests with cached config. --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 9c446ae87e7..dfe9c82cc09 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,10 @@ "dev": [ "Composer\\Config::disableProcessTimeout", "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite" + ], + "test": [ + "@php artisan config:clear --ansi", + "@php artisan test" ] }, "extra": {