skills$openclaw/snapshot-test
lxgicstudios2.4k

by lxgicstudios

snapshot-test – OpenClaw Skill

snapshot-test is an OpenClaw Skills integration for coding workflows. Generate Jest snapshot tests for components

2.4k stars3.8k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namesnapshot-test
descriptionGenerate Jest snapshot tests for components OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/ai-snapshot-test
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/ai-snapshot-test
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains snapshot-test in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
475 B
SKILL.md
1.4 KB
SKILL.md

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

README.md

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.