pest-testing

Automate Pest testing workflows for Laravel projects.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/yunusemrgrl/filament-storybook --skill pest-testing-yunusemrgrl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/yunusemrgrl/filament-storybook/tree/main/.agents/skills/pest-testing
Command: npx skills add https://github.com/yunusemrgrl/filament-storybook --skill pest-testing-yunusemrgrl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pest PHP tests in Laravel projects can become verbose and error-prone; this skill provides standardized guidance, patterns, and activation triggers to streamline writing, refactoring, and validating tests with Pest.

Core Features & Use Cases

  • Pest syntax coverage for it()/expect() and dataset usage, including mocking and Livewire/component tests.
  • Clear guidance on test organization across tests/Feature, tests/Unit, and tests/Browser, with browser testing and arch testing support.
  • Activation rules and usage patterns for when to trigger Pest-focused help during writing, editing, or refactoring tests.

Quick Start

Create a Pest test file for a Laravel feature using Pest syntax and best practices.

Frequently Asked Questions about pest-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Pest PHP tests for a Laravel project?

To write Pest PHP tests in Laravel, use the it() and expect() syntax within tests/Feature or tests/Unit directories. This Skill applies standardized patterns and activation triggers to streamline writing, refactoring, and validating your test suite.

Can I use Pest for browser testing in Laravel applications?

Yes, Pest supports browser testing in Laravel applications. You can validate browser interactions and Livewire components using dedicated browser testing patterns within the tests/Browser directory, ensuring clear separation from unit and feature tests.

Does Pest 4 syntax support datasets and mocking in Laravel tests?

Pest 4 syntax fully supports datasets and mocking utilities in Laravel tests. This allows you to efficiently handle multiple data scenarios and mock dependencies during unit and feature testing without verbose boilerplate code.

What is the best way to organize Pest tests across Feature, Unit, and Browser directories?

The best way to organize Pest tests is maintaining a clear separation across tests/Feature, tests/Unit, and tests/Browser directories. This structure ensures that unit logic, feature integrations, and browser interactions remain distinct and manageable during refactoring.

How do I refactor existing Laravel tests to use Pest syntax?

Refactoring Laravel tests to Pest syntax involves applying standardized patterns for it() and expect() functions, along with RefreshDatabase traits. This process streamlines validation and reduces verbosity by leveraging Pest 4 syntax and arch testing support.