·frontend-testing-best-practices
</>

frontend-testing-best-practices

测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。

5安装·0热度·@emerson1337

安装

$npx skills add https://github.com/emerson1337/skills-for-agents --skill frontend-testing-best-practices

如何安装 frontend-testing-best-practices

通过命令行快速安装 frontend-testing-best-practices AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/emerson1337/skills-for-agents --skill frontend-testing-best-practices
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:emerson1337/skills-for-agents。

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.

测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。 来源:emerson1337/skills-for-agents。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/emerson1337/skills-for-agents --skill frontend-testing-best-practices
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from emerson1337/skills-for-agents

快速解答

什么是 frontend-testing-best-practices?

测试前端的最佳实践。强调端到端测试而不是单元测试、最小化模拟以及测试行为而不是实现细节。在编写测试或检查测试代码时使用。 来源:emerson1337/skills-for-agents。

如何安装 frontend-testing-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/emerson1337/skills-for-agents --skill frontend-testing-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/emerson1337/skills-for-agents