协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
snapshot-test【开发与工程】Generate Jest snapshot tests for components
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Point it at your components, get snapshot tests. Covers common states and props.
npx ai-snapshot-test ./src/components/Button.tsx
# Generate for a component
npx ai-snapshot-test ./src/components/Card.tsx
# Generate for directory
npx ai-snapshot-test ./src/components/
# With specific test runner
npx ai-snapshot-test ./components --runner vitest
describe('Button', () => {
it('renders default state', () => {
const { container } = render(<Button>Click me</Button>);
expect(container).toMatchSnapshot();
});
it('renders disabled state', () => {
const { container } = render(<Button disabled>Click me</Button>);
expect(container).toMatchSnapshot();
});
});
Node.js 18+. OPENAI_API_KEY required.
MIT. Free forever.
Built by LXGIC Studios