Vue 3 组件单元测试指南 (Vitest)
OfficialStandard Vue 3 unit testing with Vitest.
Software Engineering#vitest#javascript#vue#unit-testing#frontend-testing#component-testing#vue-test-utils
AuthorTencentBlueKing
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps frontend teams establish reliable Vue 3 component testing practices using Vitest and Vue Test Utils, reducing regression bugs and speeding up development.
Core Features & Use Cases
- Comprehensive Testing Template: Provides a repeatable pattern for mounting components, asserting props, and verifying emitted events.
- Mocking & Isolation: Demonstrates how to mock dependencies and isolate unit tests from external API calls.
- Use Case: When maintaining a Vue 3 component library, teams can add unit tests that validate rendering and user interactions across components.
Quick Start
Run unit tests for Vue components using Vitest with the provided templates and helpers.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 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: Vue 3 组件单元测试指南 (Vitest) Download link: https://github.com/TencentBlueKing/bk-bcs/archive/main.zip#vue-3-vitest 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.