360 Secure SkillHub
360 安全技能中心

frontend-testing

用于在 web/ 或 packages/dify-ui/ 下编写、修改 Vitest 或 React Testing Library 测试,或评估现有前端测试策略;需阅读对应包内的测试策略文档并按其要求和验证命令执行,同时报告验证的契约与验证缺口。不适用于纯前端代码审查、通用可测试性讨论、Python 测试或 Cucumber/Playwright E2E。

分类:开发
langgenius
热度 30.34
最近更新 2026-12-05 05:22:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add langgenius/dify/frontend-testing
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
frontend-testing
description
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.

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/content/contributing/testing/index.mdx owns primitive test boundaries, environments, accessibility/visual testing, 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.