Agent skill

vite-react-ts-testing

Add a testing setup to a Vite React-TS project (Vitest + Testing Library) following best practices, with minimal configuration and fast feedback.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/vite-react-ts-testing

SKILL.md

Vite React-TS Testing (Vitest) Skill

Add fast unit/component tests suitable for Vite + React + TS.

Rules / best practices

  1. Prefer Vitest for unit tests in Vite projects.
  2. Prefer @testing-library/react for UI tests.
  3. Use jsdom environment for React component tests.
  4. 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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results