Everything on Pest.
14 articles tagged Pest, sorted newest first.
Turn a Filament v5 Create Page Into a Multi-Step Wizard
A 20-field create form is a wall users scroll past. The HasWizard trait splits it into validated steps without touching the resource schema your edit page still uses.
Build Custom Pest Expectations for Your Laravel Domain Language
Turn the six-line assertion blocks you keep pasting between tests into named expectations like expect($order)->toBeFulfilled(), then ship them as a package.
Test Filament v5 Resources with Pest
Filament resource pages are Livewire components, not URLs. Point livewire() at the page class and you get table, form and action assertions that run in milliseconds.
Filament v5 Authorization: Policies, Roles and Permissions Complete Guide
A policy alone will not stop a user seeing every row in your table. Here are the four layers of Filament v5 authorization - panel access, policies, query scoping and field visibility - wired together and covered by tests.
Test Livewire 4 Components with Pest
Livewire 4 ships first-class Pest test helpers. Mount a component, set properties, call actions, and assert state, output, validation, and events without a browser.
Measure and Enforce Type Coverage with Pest's Type Coverage Plugin
'We use types' is not a measurable claim. Pest's type coverage plugin turns it into a percentage you can read per file and enforce in CI.
Measure Test Quality, Not Just Coverage: Pest Mutation Testing
100% line coverage can still ship bugs. Here's how Pest's mutation testing finds the assertions your test suite is quietly missing.
Test AI Features Without Calling the API: Agent::fake() in the Laravel AI SDK
You shipped an agent and wrote zero tests for it, because hitting a real model is slow, costs tokens, and needs a key in CI. The Laravel AI SDK's fake() fixes all three.
GitHub Actions + Pest Sharding — Cut Laravel CI from 12 Minutes to 3
Split your Pest suite across four GitHub Actions matrix jobs, balance them by real execution time, and gate merges on a single status check.
PestStan — Type-Safe Pest 4 Tests With PHPStan Generics in a Laravel App
PestStan teaches PHPStan about Pest's globals — generic expect() types, proper $this binding, and rules that catch broken assertions before the test even runs.
Pest 4 Snapshot Testing for Laravel API Responses: Catch Accidental Schema Drift
Pest 4 has snapshot testing built in. One expectation locks down the shape of your JSON responses so renamed keys and disappearing fields stop slipping into production unnoticed.
Pest 4 Browser Testing with Playwright: A Dusk Replacement That Actually Sticks
Pest 4 ships a first-party browser plugin powered by Playwright. Auto-waits, parallel runs, and time-balanced shards turn a 12-minute Dusk suite into a 90-second CI job.
Enforcing Laravel architecture rules with Pest's arch() helper
Pest's arch() helper lets you write rules that enforce your app's structure at test time: no more accidentally importing Eloquent into a controller.
The Complete Laravel Developer Toolchain for 2026
Stop spending days configuring tools. Here is every tool in my Laravel stack for 2026, why I chose each one, and exactly how to set it up.