vitest-runner

Execute vitest tests using the project's configuration in run mode.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/yolo-labs-hq/yolo-skills-registry --skill vitest-runner-yolo-labs-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vitest-runner
Source: https://github.com/yolo-labs-hq/yolo-skills-registry/tree/main/skills/vitest-runner
Command: npx skills add https://github.com/yolo-labs-hq/yolo-skills-registry --skill vitest-runner-yolo-labs-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run vitest with the project's own config to ensure tests run in a predictable, reproducible environment, avoiding global or stale settings.

Core Features & Use Cases

  • Deterministic test execution using the project's vitest config.
  • Avoid long-running processes by preferring run mode over watch mode during agent sessions.
  • Use compact, parse-friendly reporting and opt-in coverage for deeper analysis.

Quick Start

Run vitest with the project's config to execute a targeted test file.

Frequently Asked Questions about vitest-runner

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

FAQPage Schema
How do I run vitest in CI without watch mode leaving lingering processes?

To run vitest in CI without lingering processes, execute tests in run mode using your project's specific configuration. This avoids watch mode to ensure deterministic output and clean process termination during agent sessions.

How do I execute a targeted vitest test file with project-specific config?

You can execute a targeted vitest test file by running vitest with your project's own configuration. This ensures tests run in a predictable, reproducible environment, avoiding global or stale settings.

Can I generate test coverage with vitest using standard flags?

Yes, you can generate test coverage with vitest by passing standard vitest flags. This provides opt-in coverage for deeper analysis alongside compact, parse-friendly reporting for your test suite.

Why does my vitest test runner produce inconsistent results across environments?

Vitest produces inconsistent results when relying on global or stale settings. Using the project's own vitest config ensures deterministic test execution and a predictable, reproducible testing environment.

What is the best way to automate javascript testing with vitest for agent sessions?

The best way to automate javascript testing with vitest for agent sessions is using run mode with project-specific config. This prevents lingering processes and provides deterministic output and basic reporting.