vitest-testing-expert

Configure Vitest with Vite, migrate from Jest, and enable browser-mode testing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/phuxp17/demo_web --skill vitest-testing-expert-phuxp17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vitest-testing-expert
Source: https://github.com/phuxp17/demo_web/tree/main/.agent/skills/vitest-expert
Command: npx skills add https://github.com/phuxp17/demo_web --skill vitest-testing-expert-phuxp17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vitest testing is essential for fast feedback in Vite-powered projects. This Skill provides expert guidance to configure Vitest, migrate from Jest, enable browser-mode testing, and tune performance for large test suites.

Core Features & Use Cases

  • Vite Integration & Configuration: optimal Vitest setup, pool tuning, transformation modes, and HMR integration for test development.
  • Jest Migration & API Compatibility: strategies to translate mocks, timers, snapshots, and imports from Jest to Vitest.
  • Browser Mode Testing: multi-browser testing with Playwright/WebDriver, framework integration, and browser-specific matchers.
  • Performance Optimization: isolation/pool settings, dependency optimization, and memory usage strategies.
  • Workspace & Monorepo Support: multi-project configurations and shared test tooling.
  • Modern JavaScript & ESM: native ESM, import.meta.vitest, TypeScript integration.

Quick Start

Install Vitest and Vite in your project (npm i -D vitest vite). Create a vitest.config.ts with your test setup, then run tests with npx vitest run or npm exec vitest.

Frequently Asked Questions about vitest-testing-expert

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

FAQPage Schema
How do I migrate from Jest to Vitest in a Vite project?

Migrating from Jest to Vitest involves translating mocks, timers, snapshots, and imports. This Skill provides strategies for Jest API compatibility, allowing you to transition your test suite to native ESM and Vite integration.

Can I run browser-mode testing with Vitest?

Yes, browser-mode testing in Vitest supports multi-browser testing with Playwright or WebDriver. It enables framework integration and browser-specific matchers for comprehensive frontend testing across different environments.

What's the best way to optimize Vitest performance for large test suites?

Optimizing Vitest performance requires adjusting pool and isolation settings, configuring dependency optimization, and managing memory usage. This Skill provides guidance to tune these settings for reliable test performance in large suites.

Does Vitest support native ESM and TypeScript integration?

Vitest supports native ESM, import.meta.vitest, and TypeScript integration natively. This Skill helps configure your setup to meet requirements for modern JavaScript and TypeScript framework integrations without extra transpilation.

How do I configure multi-project Vitest setups in a monorepo?

Configuring multi-project Vitest setups in a monorepo requires workspace support and shared test tooling. This Skill provides guidance for multi-project configurations to maintain consistent test environments across your Vite workspace.