Vitest
Comprehensive Vitest testing framework skills for modern Vite-powered JavaScript and TypeScript projects.
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-vitestOverview
Comprehensive Vitest testing framework skills for modern Vite-powered JavaScript and TypeScript projects.
Skills
This plugin provides the following skills:
- Vitest Configuration
- Vitest Performance
- Vitest Testing Patterns
Usage
Once enabled, Claude will automatically apply these skills when working with relevant code. The plugin provides context and expertise that Claude uses to:
- Write idiomatic code following best practices
- Suggest appropriate patterns and architectures
- Catch common mistakes and anti-patterns
- Provide framework-specific guidance
License
Licensed under MIT - see repository for details.
Skills
vitest-configuration
Use when vitest configuration, Vite integration, workspace setup, and test environment configuration for modern testing.
vitest-performance
Use when vitest performance optimization including fast execution, watch mode, and parallelization strategies.
vitest-testing-patterns
Use when vitest testing patterns including unit tests, mocks, spies, and browser mode testing.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with package.json -- npx vitest runSubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with package.json -- npx vitest run