test-frontend-units
✓使用 Vitest 为 Fake Survey Generator React 应用程序执行前端组件单元测试。此技能验证 React 组件是否经过正确测试以及现有测试是否继续通过。报告测试失败和代码覆盖率指标。
SKILL.md
Use this skill to run unit tests for React components to validate that features are properly tested and components function as expected.
| "Unable to find an element" error | Selector doesn't match any elements | Use more specific selectors (getByRole, getByLabelText) or use screen.debug() | | Timeout in waitFor | Async operation not completing | Check mock setup, increase timeout, verify component updates state |
| Import errors in tests | Wrong import paths | Use relative paths from test file location (e.g., ../test/test-utils) | | Type errors with mocks | Mock return type mismatch | Ensure mock data matches component prop types | | Auth0 not mocked | Setup.ts not loading | Verify vitest.config.ts has correct setupFiles path |
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/marcelmichau/fake-survey-generator --skill test-frontend-units- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 test-frontend-units?
使用 Vitest 为 Fake Survey Generator React 应用程序执行前端组件单元测试。此技能验证 React 组件是否经过正确测试以及现有测试是否继续通过。报告测试失败和代码覆盖率指标。 来源:marcelmichau/fake-survey-generator。
如何安装 test-frontend-units?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/marcelmichau/fake-survey-generator --skill test-frontend-units 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/marcelmichau/fake-survey-generator
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01