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
更新於 11/22/2025
星標
4
分支
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).

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use test-vue-composable