·vue-vite-testing
</>

vue-vite-testing

eva813/vue3-skills

使用 Vitest 和 Vue Test Utils 的 Vue 3 + Vite 项目的综合单元测试指南。在基于 Vite 的项目中编写或审查 Vue 组件、可组合项、Pinia 存储或 TypeScript/JavaScript 实用程序的单元测试时使用。涵盖测试结构、最佳实践、模拟策略和 Vue 特定的测试模式。

9安装·0热度·@eva813

安装

$npx skills add https://github.com/eva813/vue3-skills --skill vue-vite-testing

SKILL.md

Generate comprehensive, production-ready unit tests for Vue 3 + Vite projects using Vitest framework. Follow industry best practices for testing Vue components, composables, Pinia stores, and TypeScript utilities with proper isolation, mocking, and edge case coverage.

See references/component-testing.md for complete component testing patterns including slots, provide/inject, and async components.

See references/composables-testing.md for advanced composable testing patterns including side effects and cleanup.

使用 Vitest 和 Vue Test Utils 的 Vue 3 + Vite 项目的综合单元测试指南。在基于 Vite 的项目中编写或审查 Vue 组件、可组合项、Pinia 存储或 TypeScript/JavaScript 实用程序的单元测试时使用。涵盖测试结构、最佳实践、模拟策略和 Vue 特定的测试模式。 来源:eva813/vue3-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/eva813/vue3-skills --skill vue-vite-testing
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 vue-vite-testing?

使用 Vitest 和 Vue Test Utils 的 Vue 3 + Vite 项目的综合单元测试指南。在基于 Vite 的项目中编写或审查 Vue 组件、可组合项、Pinia 存储或 TypeScript/JavaScript 实用程序的单元测试时使用。涵盖测试结构、最佳实践、模拟策略和 Vue 特定的测试模式。 来源:eva813/vue3-skills。

如何安装 vue-vite-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/eva813/vue3-skills --skill vue-vite-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/eva813/vue3-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-01