langgenius avatar

Frontend Testing

This generates Vitest and React Testing Library tests for Dify's frontend codebase, following their conventions around file placement, mocking patterns, and integration-first testing. It's built from their internal test.md docs, so it knows to put tests in sibling __tests__ directories, use real project components instead of mocking everything, and handle nuqs query state testing with the right adapters. The workflow is deliberately incremental: one file at a time, run it, fix it, then move on. Useful when you're adding coverage to a feature directory or need tests that match existing patterns. It won't help with E2E or Python tests, just the web layer unit and integration work.

skills.sh installs
3.8K
GitHub stars
160.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add langgenius/dify --skill frontend-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/langgenius/dify
Categories
Frontend Development, Testing & QA, Git & Pull Requests, Documentation, Code Review & Quality, Python

More from langgenius/dify

All 8
1dotnet avatarauthor-componentdotnet/skillsCreate or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, impl3.8Kskills.sh installs
2nexu-io avatarpptx-html-fidelity-auditnexu-io/open-designAudit a python-pptx export against its source HTML deck, identify layout/content drift (footer overflow, cropped content, missing italic/em, lost styling, off-r3.3Kskills.sh installs
3vercel-labs avatarreact-nativevercel-labs/json-renderReact Native renderer for json-render that turns JSON specs into native mobile UIs. Use when working with @json-render/react-native, building React Native UIs f3.3Kskills.sh installs
4onmax avatarnuxt-contentonmax/nuxt-skillsBuild typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC renderi2.9Kskills.sh installs
5onmax avatarnuxt-modulesonmax/nuxt-skillsUse when creating Nuxt modules: (1) Published npm modules (@nuxtjs/, nuxt-), (2) Local project modules (modules/ directory), (3) Runtime extensions (components,2.9Kskills.sh installs
6owl-listener avatarlayout-gridowl-listener/designer-skillsDefine responsive layout grid systems with columns, gutters, margins, and breakpoint behavior.2.6Kskills.sh installs