frontend-testing-best-practices
✓测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。
SKILL.md
Guidelines for writing effective, maintainable tests that provide real confidence. Contains 6 rules focused on preferring E2E tests, minimizing mocking, and testing behavior over implementation.
Default to E2E tests. Only write unit tests for pure functions.
Don't unit test React components. Test them through E2E or not at all.
测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。 来源:sergiodxa/agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/sergiodxa/agent-skills --skill frontend-testing-best-practices- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 frontend-testing-best-practices?
测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。 来源:sergiodxa/agent-skills。
如何安装 frontend-testing-best-practices?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/sergiodxa/agent-skills --skill frontend-testing-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/sergiodxa/agent-skills