accelint-react-testing
✓使用測試庫編寫、審查或重構 React 元件測試時使用。當您看到 render()、screen、fireEvent、userEvent、waitFor 或 *.test.tsx 檔案時載入。涵蓋查詢優先順序(getByRole > getByLabelText > getByText)、以使用者為中心的測試模式、非同步實用程式、使用提供者的自訂呈現以及可存取性優先的斷言。關鍵字包括 RTL、測試庫、螢幕、getByRole、findBy、queryBy、userEvent、waitFor、toBeInTheDocument、testing-library/react、testing-library/user-event、jest-dom。
SKILL.md
Expert guidance for writing maintainable, user-centric React component tests with Testing Library. Focused on query selection, accessibility-first testing, and avoiding implementation details.
Apply these thinking patterns before implementing React component tests:
Start with the Overview (AGENTS.md) Read AGENTS.md for a concise overview of all rules with one-line summaries.
使用測試庫編寫、審查或重構 React 元件測試時使用。當您看到 render()、screen、fireEvent、userEvent、waitFor 或 *.test.tsx 檔案時載入。涵蓋查詢優先順序(getByRole > getByLabelText > getByText)、以使用者為中心的測試模式、非同步實用程式、使用提供者的自訂呈現以及可存取性優先的斷言。關鍵字包括 RTL、測試庫、螢幕、getByRole、findBy、queryBy、userEvent、waitFor、toBeInTheDocument、testing-library/react、testing-library/user-event、jest-dom。 來源:gohypergiant/agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/gohypergiant/agent-skills --skill accelint-react-testing- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-12
- 更新時間
- 2026-02-18
快速解答
什麼是 accelint-react-testing?
使用測試庫編寫、審查或重構 React 元件測試時使用。當您看到 render()、screen、fireEvent、userEvent、waitFor 或 *.test.tsx 檔案時載入。涵蓋查詢優先順序(getByRole > getByLabelText > getByText)、以使用者為中心的測試模式、非同步實用程式、使用提供者的自訂呈現以及可存取性優先的斷言。關鍵字包括 RTL、測試庫、螢幕、getByRole、findBy、queryBy、userEvent、waitFor、toBeInTheDocument、testing-library/react、testing-library/user-event、jest-dom。 來源:gohypergiant/agent-skills。
如何安裝 accelint-react-testing?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/gohypergiant/agent-skills --skill accelint-react-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/gohypergiant/agent-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-12