essential-test-patterns

Official

Universal testing patterns for GROWI

Authorgrowilabs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

GROWI testing teams face inconsistency across unit, integration, and component tests; this Skill provides universal, reusable testing patterns to standardize how tests are written and organized.

Core Features & Use Cases

  • Co-location of tests next to source files for easy maintenance.
  • Typing-safe mocks with vitest-mock-extended and Vitest globals.
  • Component, integration, and async testing patterns using React Testing Library and Vitest.
  • Clear test structure guidelines (AAA) and best practices for mocking, async testing, and isolated state.

Use cases include: writing component tests for UI elements, creating integration tests for API routes, and ensuring robust async test flows across the monorepo.

Quick Start

Begin by placing tests beside their source files and adopt Vitest with React Testing Library and vitest-mock-extended for type-safe mocks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: essential-test-patterns
Download link: https://github.com/growilabs/growi/archive/main.zip#essential-test-patterns

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.