chartjs-snapshot-tests
Installation
SKILL.md
chartjs-snapshot-tests
Per the [Chart.js docs], Chart.js renders to <canvas>, testable via
canvas.toDataURL() snapshot diff.
When to use
- Dashboards or analytics products where chart accuracy is product surface.
- Library upgrade gate (Chart.js v4 → v5 changes default styles).
- Custom theme integration - verify the brand styling renders correctly.
Step 1 - Disable animations for stable snapshots
Per the [Chart.js docs], the basic config object accepts options: