vitest-testing-expert

Configure and optimize Vitest for Vite-integrated applications.

Updated Apr 23, 2025
One-click install
npx skills add https://github.com/ripgraphics/authorsinfo --skill vitest-testing-expert-ripgraphics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vitest-testing-expert
Source: https://github.com/ripgraphics/authorsinfo/tree/main/.cursor/skills/vitest-expert
Command: npx skills add https://github.com/ripgraphics/authorsinfo --skill vitest-testing-expert-ripgraphics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers efficiently configure, migrate to, and optimize Vitest for testing Vite-integrated applications, addressing complex Jest migrations and browser testing scenarios.

Core Features & Use Cases

  • Vitest Configuration: Guides on setting up Vitest with Vite, including pool configurations and HMR integration.
  • Jest Migration: Provides strategies for migrating from Jest to Vitest, handling API differences and mock behaviors.
  • Browser Testing: Enables configuration and optimization of browser-based testing with tools like Playwright.
  • Performance Optimization: Identifies and resolves bottlenecks in test execution speed and resource usage.
  • Use Case: A developer needs to migrate their existing Jest test suite to Vitest for a Vite project and wants to ensure optimal performance and compatibility, especially for component tests running in a browser environment.

Quick Start

Use the vitest-testing-expert skill to help configure Vitest for a Vite project, focusing on browser mode testing.

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 a Jest test suite to Vitest for a Vite project?

Migrating Jest tests to Vitest requires resolving API differences and adjusting mock behaviors to align with Vite's build configurations. This Skill provides strategies to transition your test suite while maintaining compatibility and performance.

How do I set up Vitest browser mode testing with Playwright?

Setting up Vitest browser mode testing involves configuring Playwright and optimizing browser automation within your Vite environment. This Skill guides you through the setup process to enable reliable component testing in a real browser.

Why are my Vitest tests running slow and how can I optimize performance?

Optimizing Vitest performance involves identifying execution bottlenecks and resolving resource usage through proper pool configurations. This Skill helps tune your testing framework to maximize test execution speed for Vite-integrated applications.

Does Vitest support HMR integration and custom pool configurations?

Vitest supports Hot Module Replacement integration and offers customizable pool configurations for Vite-integrated applications. This Skill provides guidance on utilizing these features to streamline your development and testing workflow.

What is the best way to handle mock behaviors when moving from Jest to Vitest?

Handling mock behaviors during a Jest migration requires understanding the API differences between the two testing frameworks. This Skill outlines the necessary adjustments to ensure mocks function correctly within the Vitest ecosystem.