vitest-recharts-mocking
CommunityMock Recharts for fast, SVG-free React tests.
AuthorDavidTeju
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Mock Recharts components in Vitest/React Testing Library tests to avoid SVG rendering issues and slow visuals during unit tests.
Core Features & Use Cases
- Mock core Recharts components (PieChart, BarChart, LineChart, Tooltip, Legend) to enable fast, deterministic tests.
- Validate data transformation logic and conditional rendering without visuals.
- Use in component tests that import from 'recharts' to isolate chart logic from visuals.
Quick Start
Run your Vitest suite with recharts mocked to verify component logic without rendering SVG charts.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: vitest-recharts-mocking Download link: https://github.com/DavidTeju/shared-skills/archive/main.zip#vitest-recharts-mocking Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.