vitest-testing-expert

Configure Vitest for Vite projects and migrate Jest tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vitest Testing Expert helps teams accelerate adoption and optimization of Vitest within Vite-based projects, reducing time-to-value and avoiding common misconfigurations.

Core Features & Use Cases

  • Vite Integration & Configuration: guidance on configuring Vitest with Vite, including pool configuration, transform mode, HMR, and dependency optimization.
  • Jest Migration & API Compatibility: mapping Jest patterns to Vitest equivalents, mocks, snapshots, and type imports.
  • Browser Mode Testing & Performance: setup for multi-browser testing and performance tuning.
  • Workspace & Monorepo Support: multi-project setups, shared configurations, and environment strategies.

Quick Start

Set up Vitest with a basic Vite project by adding a vitest config and a simple test file.

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 Jest tests to Vitest in a Vite project?

Migrating Jest tests to Vitest involves mapping Jest patterns to Vitest equivalents for mocks, snapshots, and type imports. This guidance covers API compatibility mapping to ensure your existing test suite transitions smoothly to the Vitest runner.

What is the best way to configure Vitest for a multi-project workspace?

Configuring Vitest for a multi-project workspace requires setting up shared configurations and environment strategies across monorepo projects. This approach ensures consistent testing environments and reduces configuration duplication across your Vite-based workspace.

Does Vitest support browser mode testing for React and Vue?

Yes, Vitest supports browser mode testing for React, Vue, and other frameworks. Setting up browser providers allows you to run tests directly in browser environments, enabling multi-browser testing and more reliable integration tests.

How do I optimize Vitest performance using worker pool configuration?

Optimizing Vitest performance involves tuning worker pool configuration, transform modes, and dependency optimization settings. Adjusting these parameters in your Vite config reduces test execution time and improves overall reliability.

Can I use import.meta.vitest for in-source testing in Vitest?

Yes, you can use import.meta.vitest for in-source testing practices within your application code. This Vitest feature allows you to co-locate tests with implementation files, enabling direct testing of internal logic without separate exports.