home/categories/testing/alexanderop-markvim-claude-skills-vue-test-composable-skill-md
testingtesting-security

test-vue-composable

Guide for unit testing Vue 3 Composables using Vitest. Use this skill when writing tests for Vue logic to determine the correct testing strategy based on whether the composable is independent, relies on lifecycle hooks (onMounted), or uses dependency injection (provide/inject).

alexanderop
maintainer
alexanderop
Updated 11/22/2025
Stars
4
Forks
1
quick start

Installation and usage

Guide for unit testing Vue 3 Composables using Vitest. Use this skill when writing tests for Vue logic to determine the correct testing strategy based on whether the composable is independent, relies on lifecycle hooks (onMounted), or uses dependency injection (provide/inject).

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use test-vue-composable