Testing Pest
SKILL.md
Testing Pest
When to use this skill
- When creating test files for new Laravel features or classes
- When adding test coverage for controllers, services, or API endpoints
- When writing tests for Livewire components with user interactions
- When testing Artisan commands or queued jobs
- When ensuring proper test structure with describe blocks and beforeEach hooks
- When implementing mocking strategies for external dependencies
- When writing dataset-driven tests for multiple scenarios
- When testing model relationships and database interactions
- When working on files in tests/Feature/ directory (integration tests)
- When working on files in tests/Unit/ directory (isolated unit tests)
- When creating comprehensive test coverage including happy paths and failures
- When using RefreshDatabase trait for database tests
- When mocking HTTP requests with Saloon MockClient
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing pest.
Instructions
For details, refer to the information provided in this file: testing pest