vue-composable-testing
✓按照最佳实践使用 Vitest 测试 Vue 3 可组合项。在为可组合项编写测试、为 Vue 反应性创建测试助手,或者当被要求“测试可组合项”、“编写使用测试*”或“帮助测试 Vue 组合函数”时使用。涵盖独立可组合项(直接测试)和依赖可组合项(使用助手的生命周期/注入测试)。
SKILL.md
Test composables based on their dependency type: Independent (direct testing) or Dependent (requires component context).
| Independent | Uses only reactivity APIs (ref, computed, watch) | Test directly like functions | | Dependent | Uses lifecycle hooks (onMounted) or inject | Use withSetup or useInjectedSetup helpers |
Independent composables use only Vue's reactivity system without lifecycle hooks or dependency injection.
按照最佳实践使用 Vitest 测试 Vue 3 可组合项。在为可组合项编写测试、为 Vue 反应性创建测试助手,或者当被要求“测试可组合项”、“编写使用测试*”或“帮助测试 Vue 组合函数”时使用。涵盖独立可组合项(直接测试)和依赖可组合项(使用助手的生命周期/注入测试)。 来源:alexanderop/workouttracker。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/alexanderop/workouttracker --skill vue-composable-testing- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 vue-composable-testing?
按照最佳实践使用 Vitest 测试 Vue 3 可组合项。在为可组合项编写测试、为 Vue 反应性创建测试助手,或者当被要求“测试可组合项”、“编写使用测试*”或“帮助测试 Vue 组合函数”时使用。涵盖独立可组合项(直接测试)和依赖可组合项(使用助手的生命周期/注入测试)。 来源:alexanderop/workouttracker。
如何安装 vue-composable-testing?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/alexanderop/workouttracker --skill vue-composable-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/alexanderop/workouttracker
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01