test-infrastructure
OfficialBuild robust Vitest infrastructure for monorepos.
Authorelevanaltd
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Configuring a consistent and efficient Vitest testing infrastructure across a monorepo, including mocking, polyfills, and cleanup, can be challenging. This Skill provides battle-tested patterns for setting up Vitest, ensuring fast, reliable, and maintainable tests.
Core Features & Use Cases
- Global Vitest Configuration: Standardized setup for monorepo-wide Vitest environments, including browser API polyfills.
- Conditional Mocking: Patterns for switching between mocked (unit) and real (integration) dependencies to optimize test speed and coverage.
- Test Cleanup Protocols: Ensures proper resource cleanup (e.g., WebSocket connections) to prevent CI hangs and flaky tests.
- Use Case: When you're setting up a new project or adding a new app to a monorepo, use this Skill to configure Vitest, define mocking strategies, and establish test standards.
Quick Start
Configure Vitest for a new monorepo application, including browser polyfills and conditional mocking for Supabase clients.
Dependency Matrix
Required Modules
None requiredComponents
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: test-infrastructure Download link: https://github.com/elevanaltd/eav-monorepo/archive/main.zip#test-infrastructure Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.