pest
pest copied to clipboard
[Bug]: Plugin setup fails
What Happened
I followed the plugin creation instructions and added an arch preset.
However, while testing out the plugin on my local, I got this error at the composer autoload dump script:
PHP Fatal error: Uncaught Error: Call to undefined method Pest\PendingCalls\UsesCall::preset() in /Users/damms005/Herd/tims/vendor/pestphp/pest/src/Configuration.php:120
How to Reproduce
- Clone the plugin repo to local
- Install a fresh Laravel app, and setup a local composer repository for the plugin:
"repositories": [
{
"type": "path",
"url": "/your-local-path-to-the-cloned/pest-plugin-filament-auth",
"options": {
"symlink": true
}
}
]
- Install the package from the local repository:
composer require --dev damms005/pest-plugin-filament-auth
See error:
// some lines skippe dfor brevity
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception
Please run [./vendor/bin/pest] instead.
In Configuration.php line 120:
Call to undefined method Pest\PendingCalls\UsesCall::preset(
Sample Repository
https://github.com/damms005/pest-plugin-filament-auth
Pest Version
latest
PHP Version
8.4.7
Operation System
macOS
Notes
No response