From f87a8a0ee0523c44f378aa4dcbd90524e1ba7ece Mon Sep 17 00:00:00 2001 From: "M. D." Date: Fri, 18 Oct 2024 08:03:02 +0200 Subject: [PATCH 1/3] Add support for v3 of the `pest-plugin-livewire` --- composer.json | 128 +++++++++++++++++++++++++------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/composer.json b/composer.json index 2376a689..15e6aad2 100644 --- a/composer.json +++ b/composer.json @@ -1,66 +1,66 @@ { - "name": "codewithdennis/filament-tests", - "description": "A package that creates PEST tests specifically tailored for your filament resources", - "keywords": [ - "laravel", - "filament-tests", - "filamentphp", - "php", - "pest" - ], - "homepage": "https://github.com/codewithdennis/filament-tests", - "license": "MIT", - "authors": [ - { - "name": "CodeWithDennis", - "role": "Developer" - } - ], - "require": { - "php": "^8.1", - "spatie/laravel-package-tools": "^1.14.0", - "illuminate/contracts": "^10.0|^11.0", - "pestphp/pest-plugin-livewire": "^2.1" - }, - "require-dev": { - "laravel/pint": "^1.14", - "nunomaduro/collision": "^7.8", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0" - }, - "autoload": { - "psr-4": { - "CodeWithDennis\\FilamentTests\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "CodeWithDennis\\FilamentTests\\Tests\\": "tests/" - } - }, - "scripts": { - "start": [ - "Composer\\Config::disableProcessTimeout", - "@composer run build" - ] - }, - "config": { - "sort-packages": true, - "allow-plugins": { - "pestphp/pest-plugin": true, - "phpstan/extension-installer": true - } - }, - "extra": { - "laravel": { - "providers": [ - "CodeWithDennis\\FilamentTests\\FilamentTestsServiceProvider" - ], - "aliases": { - "FilamentTests": "CodeWithDennis\\FilamentTests\\Facades\\FilamentTests" - } - } - }, - "minimum-stability": "dev", - "prefer-stable": true + "name": "codewithdennis/filament-tests", + "description": "A package that creates PEST tests specifically tailored for your filament resources", + "keywords": [ + "laravel", + "filament-tests", + "filamentphp", + "php", + "pest" + ], + "homepage": "https://github.com/codewithdennis/filament-tests", + "license": "MIT", + "authors": [ + { + "name": "CodeWithDennis", + "role": "Developer" + } + ], + "require": { + "php": "^8.1", + "spatie/laravel-package-tools": "^1.14.0", + "illuminate/contracts": "^10.0|^11.0", + "pestphp/pest-plugin-livewire": "^2.1|^3.0" + }, + "require-dev": { + "laravel/pint": "^1.14", + "nunomaduro/collision": "^7.8", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0" + }, + "autoload": { + "psr-4": { + "CodeWithDennis\\FilamentTests\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "CodeWithDennis\\FilamentTests\\Tests\\": "tests/" + } + }, + "scripts": { + "start": [ + "Composer\\Config::disableProcessTimeout", + "@composer run build" + ] + }, + "config": { + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "phpstan/extension-installer": true + } + }, + "extra": { + "laravel": { + "providers": [ + "CodeWithDennis\\FilamentTests\\FilamentTestsServiceProvider" + ], + "aliases": { + "FilamentTests": "CodeWithDennis\\FilamentTests\\Facades\\FilamentTests" + } + } + }, + "minimum-stability": "dev", + "prefer-stable": true } From b888e7aab1b278188dbe25e573d7082a5782dfdf Mon Sep 17 00:00:00 2001 From: "M. D." Date: Fri, 18 Oct 2024 08:04:14 +0200 Subject: [PATCH 2/3] Update composer.json This should fix an issue if you project is already using pest v3 and all of the related plugins > Problem 1 - Root composer.json requires codewithdennis/filament-tests * -> satisfiable by codewithdennis/filament-tests[dev-main, dev-fix-pest3-dep]. - codewithdennis/filament-tests[dev-main, dev-fix-pest3-dep] require pestphp/pest-plugin-livewire ^2.1 -> found pestphp/pest-plugin-livewire[v2.1.0, 2.x-dev] but it conflicts with your root composer.json require (^3.0). --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 15e6aad2..b64d65a4 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^8.1", "spatie/laravel-package-tools": "^1.14.0", "illuminate/contracts": "^10.0|^11.0", - "pestphp/pest-plugin-livewire": "^2.1|^3.0" + "pestphp/pest-plugin-livewire": "^2.1" }, "require-dev": { "laravel/pint": "^1.14", From a490bd0594e818bb9f97b399de18508927b87e23 Mon Sep 17 00:00:00 2001 From: "M. D." Date: Fri, 18 Oct 2024 08:05:34 +0200 Subject: [PATCH 3/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b64d65a4..15e6aad2 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^8.1", "spatie/laravel-package-tools": "^1.14.0", "illuminate/contracts": "^10.0|^11.0", - "pestphp/pest-plugin-livewire": "^2.1" + "pestphp/pest-plugin-livewire": "^2.1|^3.0" }, "require-dev": { "laravel/pint": "^1.14",