What problem does it solve?
Writing unit tests for Vue 3 components requires consistent conventions for file naming, mocking, mounting, and cleanup. This Skill provides a standardized guide so developers produce uniform, maintainable test suites for the chat-x frontend without reinventing test structure each time.
Core Features & Use Cases
- Standardized Test Templates: Provides a base Vitest + @vue/test-utils template with beforeEach/afterEach lifecycle handling and mock setup.
- Test Categorization: Covers rendering, props, events, and slot testing patterns for Vue components.
- Reference Resources: Includes mock patterns, test Q&A, and test strategy documents loaded on demand.
- Use Case: When adding a new Vue component to the chat-x project, ask the assistant to generate a co-located
ComponentName.spec.ts file following the project conventions, then run it with pnpm --filter @blueking/chat-x test.
Quick Start
Ask the assistant to write unit tests for a specific Vue component in the chat-x project following the skill's testing conventions.