vitest-configuration

Automate Vitest configuration and workspace setup for Vite projects.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/emiltsokov/weeklyvaibe --skill vitest-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vitest-configuration
Source: https://github.com/emiltsokov/weeklyvaibe/tree/main/.agents/skills/vitest-configuration
Command: npx skills add https://github.com/emiltsokov/weeklyvaibe --skill vitest-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vitest configuration and workspace setup for modern Vite projects.

Core Features & Use Cases

  • Configures vitest.config.ts for node/jsdom environments, setupFiles, include/exclude patterns, and coverage.
  • Workspace integration: supports multi-project workspaces with vitest.workspace.ts, shared configs, and typechecking.
  • Browser testing & performance: supports Playwright/browser testing, parallelization, and performance tuning.

Quick Start

Run vitest configuration in a new Vite project to enable unit tests and coverage.

Frequently Asked Questions about vitest-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Vitest in a TypeScript Vite project?

Vitest workspace setup supports multi-project monorepos by defining shared configurations and typechecking rules in vitest.workspace.ts to coordinate testing across multiple Vite packages.

Can I use Vitest for browser testing with Playwright?

Vitest supports browser mode and Playwright integration to render and test web components, enabling parallelized browser testing and performance tuning within a Vite project setup.

How do I set up path aliases in Vitest configuration?

Path alias integration in Vitest configuration maps module imports to correct directories, ensuring TypeScript resolves paths correctly during test execution in node or jsdom environments.

What is the best way to share Vitest configs across a monorepo workspace?

Sharing Vitest configs across a monorepo workspace involves defining shared settings in vitest.workspace.ts to apply consistent environments, setupFiles, and typechecking across multiple projects.

Does Vitest configuration support both node and jsdom environments?

Vitest configuration explicitly supports both node and jsdom environments, allowing you to switch execution contexts for server-side logic or DOM manipulation testing within a single setup.