test-vitest

Standardize vitest unit and integration test patterns for TypeScript/JavaScript projects.

1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/froide-kk/michinushi --skill test-vitest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-vitest
Source: https://github.com/froide-kk/michinushi/tree/main/test-vitest
Command: npx skills add https://github.com/froide-kk/michinushi --skill test-vitest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured reference for vitest unit and integration tests in TypeScript/JavaScript projects, enabling teams to write consistent and maintainable tests that leverage vitest features.

Core Features & Use Cases

  • Standardized test structure for describe/it blocks, mocks with vi, and test helpers.
  • Guidance for common patterns in unit and integration tests with vitest.
  • Use Case: When adopting vitest in a TS/JS project, testers follow a shared convention to ensure reliability and readability.

Quick Start

Run vitest in your TypeScript project to execute the standardized unit and integration tests.

Frequently Asked Questions about test-vitest

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

FAQPage Schema
How do I structure unit and integration tests with vitest in TypeScript?

Vitest test structure standardizes describe and it blocks for TypeScript projects to ensure maintainability and readability. You define test helpers and conventions to separate unit and integration testing scopes effectively.

What is the best way to mock modules and server actions in vitest?

Mocking in vitest uses the built-in vi utility to standardize mock patterns across tests. You apply verifiable conventions and example fragments to mock modules and handle server-action style tests reliably.

Does vitest work for both unit and integration testing in JavaScript projects?

Vitest supports both unit and integration testing in JavaScript projects by providing shared conventions. Teams adopt these standardized patterns to handle test helpers and vi mocks across different testing scopes.

How do I standardize testing conventions across a vitest project?

Standardize vitest conventions by applying structured guidance for test structure, mocks, and helpers. This ensures teams write consistent and maintainable tests that leverage vitest features effectively.

When do I need to use integration tests over unit tests in vitest?

Integration tests in vitest are needed when verifying patterns that cross module boundaries, while unit tests isolate specific logic. The standardized conventions distinguish these scopes to ensure appropriate test coverage.