
Vitest
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-codeInstalls 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
- Detect — scan the project to determine type and existing setup
- Configure — generate vitest.config.ts tailored to the environment
- Scaffold — create test setup, utilities, and a sample test
- 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- D1 Drizzle Schema1.7K
- Wordpress Content1.7K
- Elevenlabs Agents1.7K
- Project Health1.6K
- Hono Api Scaffolder1.6K
- Wordpress Setup1.6K
- Landing Page1.5K
- Design Review1.5K
- Mcp Builder1.4K
- Social Media Posts1.4K
- Cloudflare Worker Builder1.4K
- Ai Image Generator1.4K
- Shopify Products1.4K
- Github Release1.3K
- React Native1.3K
- React Patterns1.3K
- Resume Cover Letter1.3K
- Google Chat Messages1.3K
- Proposal Writer1.3K
- Aussie Business English1.3K
- Shopify Setup1.2K
- Git Workflow1.2K
- Project Docs1.2K
- Zustand State Management1.2K