pest-testing
✓使用 Pest 4 PHP 框架测试应用程序。在编写测试、创建单元或功能测试、添加断言、测试 Livewire 组件、浏览器测试、调试测试失败、使用数据集或模拟时激活;或者当用户提到测试、规范、TDD、期望、断言、覆盖率或需要验证功能是否有效时。
SKILL.md
All tests must be written using Pest. Use php artisan make:test --pest {name}.
Use specific assertions (assertSuccessful(), assertNotFound()) instead of assertStatus():
it('returns all', function () { $this->postJson('/api/docs', [])->assertSuccessful(); });
使用 Pest 4 PHP 框架测试应用程序。在编写测试、创建单元或功能测试、添加断言、测试 Livewire 组件、浏览器测试、调试测试失败、使用数据集或模拟时激活;或者当用户提到测试、规范、TDD、期望、断言、覆盖率或需要验证功能是否有效时。 来源:spatie/freek.dev。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/spatie/freek.dev --skill pest-testing- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-15
- 更新时间
- 2026-02-18
快速解答
什么是 pest-testing?
使用 Pest 4 PHP 框架测试应用程序。在编写测试、创建单元或功能测试、添加断言、测试 Livewire 组件、浏览器测试、调试测试失败、使用数据集或模拟时激活;或者当用户提到测试、规范、TDD、期望、断言、覆盖率或需要验证功能是否有效时。 来源:spatie/freek.dev。
如何安装 pest-testing?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/spatie/freek.dev --skill pest-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/spatie/freek.dev