Skip to content

Guided Vitest setup that detects project type, generates config, test setup, and a sample test.

CCM score
66 of 100
skills.sh installs
1.8K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full setup flow: project type detection, dependency install, vitest.config.ts generation, setup file, tsconfig types, scripts, and a sample test
  • Classifies projects as Cloudflare Workers, React (Vite or TanStack Start), Node/Hono, or library, each with its own environment settings
  • Extends an existing vite.config.ts rather than creating a separate config, and merges package.json scripts without overwriting them
  • Designed for setting up tests in new projects, migrating from Jest, or fixing broken testing infrastructure

Install

$ npx -y skills add jezweb/claude-skills --skill vitest -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vitest Setup

Detect the project type, generate the right Vitest configuration, and produce working test infrastructure. Not a reference card — this skill creates files.

Workflow

  1. Detect — scan the project to determine type and existing setup
  2. Configure — generate vitest.config.ts tailored to the environment
  3. Scaffold — create test setup, utilities, and a sample test
  4. Wire up — add package.json scripts and TypeScript config

Step 1: Detect Project Type

Read these files to determine the project:

package.json          → dependencies, scripts, type field
tsconfig.json         → paths, compiler options
wrangler.toml         → Cloudflare Workers project
vite.config.ts        → existing Vite setup (extend, don't replace)
vitest.config.ts      → already configured? just fill gaps
jest.config.*         → migration candidate
src/                  → source structure

Classify as one of:

Details

Repository
github.com/jezweb/claude-skills
Categories
Testing & QA, Frontend & UI Code
First seen
May 16, 2026

More from jezweb/claude-skills

All 64

Similar to Vitest

More Testing & QA