Check a page for accessibility
Review supplied markup or descriptions for practical accessibility issues and fixes.
4,955,176 AI resources indexedWorking toward the world’s largest AI resource index.
Generate Jest snapshot tests for components
---
name: snapshot-test-3a7662bae30d
description: Generate Jest snapshot tests for components
---
# Snapshot Test Generator
Point it at your components, get snapshot tests. Covers common states and props.
## Quick Start
```bash
npx ai-snapshot-test ./src/components/Button.tsx
```
## What It Does
- Generates Jest snapshot tests
- Covers default and edge cases
- Tests different prop combinations
- Handles async components
## Usage Examples
```bash
# 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
```
## Output Example
```typescript
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();
});
});
```
## Test Cases Generated
- Default props
- Required prop variations
- Edge cases (empty, null)
- Loading/error states
- Different sizes/variants
## Requirements
Node.js 18+. OPENAI_API_KEY required.
## License
MIT. Free forever.
---
**Built by LXGIC Studios**
- GitHub: [github.com/lxgicstudios/ai-snapshot-test](https://github.com/lxgicstudios/ai-snapshot-test)
- Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
---
name: snapshot-test-3a7662bae30d
description: Generate Jest snapshot tests for components
---
# Snapshot Test Generator
Point it at your components, get snapshot tests. Covers common states and props.
## Quick Start
```bash
npx ai-snapshot-test ./src/components/Button.tsx
```
## What It Does
- Generates Jest snapshot tests
- Covers default and edge cases
- Tests different prop combinations
- Handles async components
## Usage Examples
```bash
# 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
```
## Output Example
```typescript
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();
});
});
```
## Test Cases Generated
- Default props
- Required prop variations
- Edge cases (empty, null)
- Loading/error states
- Different sizes/variants
## Requirements
Node.js 18+. OPENAI_API_KEY required.
## License
MIT. Free forever.
---
**Built by LXGIC Studios**
- GitHub: [github.com/lxgicstudios/ai-snapshot-test](https://github.com/lxgicstudios/ai-snapshot-test)
- Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.