jest-rtl-testing
✓在編寫測試程式碼之前或測試失敗時編寫、審查或調試 Jest + React 測試庫測試時使用
SKILL.md
Based on Testing Library's core principles and Kent C. Dodds' best practices guidance for writing user-centric tests.
Core Principle: Tests should interact with your application the same way users do, not test implementation details.
⚠️ Performance Warning: getByRole can be slow on large views (ref). For complex UIs with many elements, prefer getByLabelText or getByText first.
在編寫測試程式碼之前或測試失敗時編寫、審查或調試 Jest + React 測試庫測試時使用 來源:lanamaysu/agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/lanamaysu/agent-skills --skill jest-rtl-testing- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-11
- 更新時間
- 2026-02-18
快速解答
什麼是 jest-rtl-testing?
在編寫測試程式碼之前或測試失敗時編寫、審查或調試 Jest + React 測試庫測試時使用 來源:lanamaysu/agent-skills。
如何安裝 jest-rtl-testing?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/lanamaysu/agent-skills --skill jest-rtl-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/lanamaysu/agent-skills