·pest-testing
</>

pest-testing

spatie/freek.dev

使用 Pest 4 PHP 框架测试应用程序。在編寫測試、建立單元或功能測試、新增斷言、測試 Livewire 元件、瀏覽器測試、偵錯測試失敗、使用資料集或模擬時啟動;或當使用者提到測試、規範、TDD、期望、斷言、覆蓋率或需要驗證功能是否有效時。

13安裝·1熱度·@spatie

安裝

$npx skills add https://github.com/spatie/freek.dev --skill pest-testing

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

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-15