Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates Vitest and React Testing Library tests for Dify frontend components, hooks, and utilities.
Use this skill ↓27% 73%+45 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 6 of 22 without it.
What are the required code coverage targets when generating frontend test files for Dify components? Please summarize the target percentages for statement, branch, function, and line coverage.
The coverage goals mandate 100 percent function coverage.
3 of 3 safety checks passed
This skill enables Codex to generate high-quality, comprehensive frontend tests for the Dify project following established conventions and best practices.
⚠️ Authoritative Source: This skill is derived from
web/testing/testing.md. Use Vitest mock/timer APIs (vi.*).
Apply this skill when the user:
pnpm analyze-component output as contextDo NOT apply when:
| Tool | Version | Purpose |
|---|---|---|
| Vitest | 4.0.16 | Test runner |
| React Testing Library | 16.0 | Component testing |
| jsdom | - | Test environment |
| nock | 14.0 | HTTP mocking |
| TypeScript | 5.x | Type safety |
# Run all tests
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.