Frontend Testing

作者 langgenius2b65f0e89309无许可证157K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test strategy, including evaluation of an existing strategy. Do not use for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright E2E.

AI 生成的概览

指导编写或修改 Vitest 与 React Testing Library 前端测试,并遵循各包自身的测试策略。

功能
该技能让智能体先阅读被修改测试所属包的测试策略文档:web/ 对应 web/docs/test.md,packages/dify-ui/ 对应 packages/dify-ui/docs/testing.md。它不新增独立的策略或检查流程,而是遵循所选文档对测试边界、环境和验证命令的要求。它还鼓励在补充行为覆盖的同时同样积极地删除低价值测试,并要求报告已验证的契约以及任何重要的验证缺口。
适用场景
适用于在 web/ 或 packages/dify-ui/ 下编写或修改 Vitest 或 React Testing Library 测试,或用户明确要求前端测试策略(包括评估现有策略)时。不适用于仅做前端代码审查、一般可测试性讨论、Python 测试或 Cucumber/Playwright 端到端测试。
运行要求
不包含脚本,仅为说明性指令。它依赖仓库中存在的所引用策略文档:web/docs/test.md 和 packages/dify-ui/docs/testing.md。

Frontend Testing

Read the testing policy for the package that owns the changed tests:

  • web/: web/docs/test.md owns Web test boundaries, environments, and commands.
  • packages/dify-ui/: packages/dify-ui/docs/testing.md owns primitive test boundaries, environments, Storybook, and commands.

This skill adds no parallel policy or check sequence. Follow the selected owner's requirements, including its validation commands. Recommend deleting low-value tests as readily as adding missing behavior coverage, and report the contract verified and any material verification gap.

来源与署名

来源:langgenius/dify位于.agents/skills/frontend-testing提交2b65f0e

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架