Frontend Testing

by langgenius2b65f0e89309No license157K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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.

Instructions onlySoftware Development
AI-generated overview

Guides writing or changing Vitest and React Testing Library frontend tests by following each package's own testing policy.

What it does
This skill directs an agent to read the testing policy document owned by the package whose tests are being changed, either web/docs/test.md for web/ or packages/dify-ui/docs/testing.md for packages/dify-ui/. It adds no separate policy or check sequence, instead deferring to the owner document's test boundaries, environments, and validation commands. It also encourages removing low-value tests as readily as adding coverage, and asks for a report of the contract verified and any material verification gap.
When to use it
Use it when writing or modifying Vitest or React Testing Library tests under web/ or packages/dify-ui/, or when the user explicitly asks for frontend test strategy, including evaluating an existing strategy. It is not intended for frontend code-review-only requests, general testability discussion, Python tests, or Cucumber/Playwright end-to-end tests.
Requirements
No scripts are included; it is instructions only. It depends on the referenced policy documents existing in the repository: web/docs/test.md and 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.

Source and attribution

Source:langgenius/difyin.agents/skills/frontend-testingat commit2b65f0e

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal