Vite React-TS Testing (Vitest) Skill
Add fast unit/component tests suitable for Vite + React + TS.
Rules / best practices
- •Prefer Vitest for unit tests in Vite projects.
- •Prefer @testing-library/react for UI tests.
- •Use jsdom environment for React component tests.
- •Keep configuration minimal.
Deliverables
- •Install commands
- •vitest config (inline in vite.config.ts or separate vitest config)
- •setupTests file if needed
- •one example test
Use template.md as the default structure.