test-vue-composable

Community

Master Vue composable testing with Vitest.

Authoralexanderop
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the complex process of unit testing Vue 3 Composables, guiding you to choose the correct testing strategy based on composable type (independent, lifecycle-dependent, or injection-dependent). It eliminates guesswork and ensures robust tests for your Vue logic.

Core Features & Use Cases

  • Strategy Selection: Automatically determines the optimal testing approach for independent, lifecycle-dependent, or injection-dependent Vue composables.
  • Helper Generation: Provides or guides the creation of necessary testing utilities like withSetup and useInjectedSetup.
  • Example-Driven: Offers clear, practical examples for each testing scenario, reducing setup time and learning curve.
  • Use Case: When developing a new Vue composable, use this skill to instantly generate the correct test structure and helper functions, ensuring your logic is thoroughly validated without manual research.

Quick Start

Use the test-vue-composable skill to generate a unit test for my useAuth composable, which uses inject for its dependencies.

Dependency Matrix

Required Modules

None required

Components

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-vue-composable
Download link: https://github.com/alexanderop/MarkVim/archive/main.zip#test-vue-composable

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository