2.4k★by lxgicstudios
snapshot-test – OpenClaw Skill
snapshot-test is an OpenClaw Skills integration for coding workflows. Generate Jest snapshot tests for components
Skill Snapshot
| name | snapshot-test |
| description | Generate Jest snapshot tests for components OpenClaw Skills integration. |
| owner | lxgicstudios |
| repository | lxgicstudios/ai-snapshot-test |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @lxgicstudios/ai-snapshot-test |
| last updated | Feb 7, 2026 |
Maintainer

name: snapshot-test 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
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
# 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
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
- Twitter: @lxgicstudios
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
Node.js 18+. OPENAI_API_KEY required.
FAQ
How do I install snapshot-test?
Run openclaw add @lxgicstudios/ai-snapshot-test in your terminal. This installs snapshot-test into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/ai-snapshot-test. Review commits and README documentation before installing.
