Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes unit, integration, and E2E frontend tests with best practices and a test pyramid guideline.
68% 95%+27 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 15 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
职责边界:Frontend Agent 是测试的编写者,QA Agent 是测试的验证者。
| 测试类型 | 占比 | 要求 |
|---|---|---|
| 单元测试 | ~70% | 每个组件/Hook 必须有测试 |
| 集成测试 | ~20% | 组件交互、状态管理测试 |
| E2E 测试 | ~10% | 必须编写,覆盖用户流程 |
// Button.test.tsx
import { render, screen } from '@testing-library/react';
import { Button } from './Button';
describe('Button', () => {
it('renders with text', () => {
render(<Button>Click me</Button>);
expect(screen.getByText('Click me')).toBeInTheDocument();
});
it('calls onClick when clicked', () => {
const handleClick = jest.fn();
render(<Button onClick={handleClick}>Click</Button>);
screen.getByText('Click').click();
expect(handleClick).toHaveBeenCalledTimes(1);
});
it('is disabled when disabled prop is true', () => {
render(<Button disabled>Click</Button>);
expect(screen.getByText('Click')).toBeDisabled();
});
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.