vitest-guidelines

Community

Vitest/Jest testing best practices.

AuthorhypeJunction
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear, actionable guidelines and best practices for writing effective tests using Vitest and Jest, ensuring consistency and maintainability in your testing suite.

Core Features & Use Cases

  • Test Structure: Enforces patterns like AAA (Arrange-Act-Assert) and Given-When-Then.
  • Query Priority: Guides the selection of appropriate Testing Library queries for robust element selection.
  • Mocking Strategies: Demonstrates effective function, module, and spy mocking techniques.
  • Use Case: When writing a new test for a component, consult this Skill to ensure you're following the recommended structure, using the correct queries, and mocking dependencies appropriately.

Quick Start

Follow the provided guidelines for structuring your Vitest tests and selecting Testing Library queries.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vitest-guidelines
Download link: https://github.com/hypeJunction/ai-assistant-starter/archive/main.zip#vitest-guidelines

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.