Skip to main content

frontend-testing

Write, update, or review Dify frontend tests using Vitest and Testing Library. Trigger for frontend specs, test coverage requests, regressions, testability, or testing strategy under web/ or packages/dify-ui/.

소스 정보

저장소
bolechen/dify
최근 소스 활동
2026년 7월 20일 08:18
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
frontend-testing
description
Write, update, or review Dify frontend tests using Vitest and Testing Library. Trigger for frontend specs, test coverage requests, regressions, testability, or testing strategy under web/ or packages/dify-ui/.
# Dify Frontend Testing Use this skill for Vitest work under `web/` and `packages/dify-ui/`. Do not use it for Python tests or Cucumber/Playwright tests under `e2e/`. ## Required Source Before writing, changing, or reviewing frontend tests, read `web/docs/test.md` completely. It is the single source of truth. This skill provides an execution checklist and must not redefine or extend that policy. ## Workflow 1. Read the source, its behavior owner, nearby specs, and relevant public dependencies. 1. Apply the canonical guide to decide whether a test is needed and choose its boundary. 1. For a behavior change or bug fix, write or identify the failing scenario first when practical. 1. Implement one coherent scenario at a time and run the focused spec before expanding scope. 1. Finish with the affected suite and relevant repository checks. 1. Report what behavior was verified and any risk that still requires browser, visual, or end-to-end validation. When reviewing existing tests, recommend deleting low-value tests as readily as adding missing behavior coverage. Run focused tests from the owning workspace: ```bash # web/ vp test run path/to/spec-or-directory # packages/dify-ui/ vp test run --project unit src/path/to/spec ``` Run Dify UI Storybook tests with `vp test --project storybook --run`. Run broader checks only after the focused behavior passes.
GitHub에서 보기