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