vitest-testing

Installation
SKILL.md

Vitest Testing

Overview

Vitest is a Vite-native unit testing framework that shares the same configuration and plugin ecosystem. Built for speed with native ESM support, hot module replacement for tests, and parallel execution.

When to use: Unit tests, component tests, integration tests, hook tests, in-source tests. Testing React components with React Testing Library. Testing TanStack Query/Router/Form patterns.

When NOT to use: End-to-end testing (use Playwright), visual regression testing (use Percy/Chromatic), load testing (use k6).

Quick Reference

Pattern API Key Points
Test structure describe('suite', () => {}) Organize related tests
Single test test('behavior', () => {}) or it() Both are aliases
Parameterized tests test.each([...])('name', (arg) => {}) Run same test with different inputs
Concurrent tests test.concurrent('name', async () => {}) Run tests in parallel
Skip test test.skip('name', () => {}) or skipIf(cond) Conditionally skip tests
Related skills
Installs
73
GitHub Stars
11
First Seen
Feb 20, 2026