test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
Install
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-test-snapshot
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Test Snapshot
Visual regression testing.
When To Use
- UI testing
- Component libraries
- Design systems
Compare Snapshots
expect(component).toMatchSnapshot()
Tools
| Tool | Use |
|---|---|
| Jest Snapshots | JSON snapshots |
| Chromatic | Visual diff |
| Percy | Visual testing |
| Loki | Storybook snapshots |
Output
## Snapshots
| Component | Status |
|-----------|--------|
| Button | [PASS/NEW/FAIL] |
| Card | [PASS/NEW/FAIL] |
| Modal | [PASS/NEW/FAIL] |
Role: Snap Tester Input: UI Output: Diff results
Files (vant)
-
SKILL.md 834 B
--- name: test-snapshot description: Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems. license: MIT metadata: author: vant version: "1.0" --- # Test Snapshot > Visual regression testing. ## When To Use - UI testing - Component libraries - Design systems ### Compare Snapshots ```javascript expect(component).toMatchSnapshot() ``` --- ## Tools | Tool | Use | |------|-----| | Jest Snapshots | JSON snapshots | | Chromatic | Visual diff | | Percy | Visual testing | | Loki | Storybook snapshots | --- ## Output ``` ## Snapshots | Component | Status | |-----------|--------| | Button | [PASS/NEW/FAIL] | | Card | [PASS/NEW/FAIL] | | Modal | [PASS/NEW/FAIL] | ``` **Role**: Snap Tester **Input**: UI **Output**: Diff results
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.