This generates a complete Vitest setup tailored to your project type. It detects whether you're running Cloudflare Workers, React, Hono APIs, or a library, then scaffolds the right config, test utilities, and a working sample test. The skill extends existing vite.config.ts files instead of creating conflicts, handles Jest migrations, and picks a real file from your codebase to demonstrate testing patterns. It's thorough about the details that break most test setups: TypeScript globals, jsdom vs node environments, Workers pool configuration. Use it when you're starting fresh with Vitest or fixing a broken test infrastructure. The generated files actually run, which is rarer than it should be.

skills.sh installs
1.8K
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

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

More from jezweb/claude-skills

All 166
1ar9av avatarwiki-dedupar9av/obsidian-wikiScan the Obsidian wiki for page-level identity collisions — different pages covering the same concept under different names (e.g. "RSC" vs "React Server Compone1.8Kskills.sh installs
2mindrally avatarhtmxmindrally/skillsHTMX development guidelines for building dynamic web applications with minimal JavaScript using HTML attributes.1.7Kskills.sh installs
3answerzhao avatarweb-readeranswerzhao/agent-skillsImplement web page content extraction capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to scrape web pages, extract article content, 1.7Kskills.sh installs
4apollographql avatarapollo-router-plugin-creatorapollographql/skillsGuide for writing Apollo Router native Rust plugins. Use this skill when: (1) users want to create a new router plugin, (2) users want to add service hooks (rou1.7Kskills.sh installs
5rookie-ricardo avatargemini-watermark-removerrookie-ricardo/erduo-skillsRemove the visible Gemini AI watermark from images using reverse alpha blending. Use when asked to strip Gemini watermarks, batch-process Gemini images, or buil1.7Kskills.sh installs
6mksglu avatarctx-doctormksglu/context-modeRun context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor1.7Kskills.sh installs