vue-vite-testing
✓使用 Vitest 和 Vue Test Utils 的 Vue 3 + Vite 項目的綜合單元測試指南。在基於 Vite 的項目中編寫或審查 Vue 組件、可組合項、Pinia 存儲或 TypeScript/JavaScript 實用程序的單元測試時使用。涵蓋測試結構、最佳實踐、模擬策略和 Vue 特定的測試模式。
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