setup-unit-test
Installation
SKILL.md
Security & Permissions Statement
This skill performs the following privileged operations to automate test environment configuration:
- File System: Reads
package.jsonand writes config files (vitest.config.ts,.claude/commands/*.md). - Shell Execution: Runs
npm/yarn/pnpmcommands to install dependencies, and runsgitcommands to detect staged files. - Git Hooks: Initializes Husky and modifies
.husky/pre-committo automate the testing workflow.
All scripts run locally and will not transmit project data to external servers (unless explicitly sent to Claude via a command invocation).
Initialize Unit Testing Environment
One-click setup of a production-grade unit testing solution for any frontend project. Detect environment → Install enhanced plugins → Auto alias resolution → AI command injection.