Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ohh-889/frontend-testing
Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities.
Passed 16 of 22 test cases with the skill, and 6 of 22 without it.
and 14 more in the full report
11 fixed5 passed either way5 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
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.
| Checked | Without skill | With skill |
|---|---|---|
| The coverage goals mandate 100 percent function coverage. | Missed | Passed |
| The coverage goals mandate greater than 95 percent branch coverage. | Missed | Passed |
The instructions your model reads when the skill loads.
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
test cases passed, vs 6 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.