vue-testing-best-practices 是做什麼的?
用於 Vue.js 測試,涵蓋 Vitest、Vue Test Utils、元件測試、模擬、測試模式,以及 Playwright 端對端測試。
用於 Vue.js 測試,涵蓋 Vitest、Vue Test Utils、元件測試、模擬、測試模式,以及 Playwright 端對端測試。
此技能旨在協助開發者高效進行 Vue.js 專案的測試工作。它全面涵蓋了 Vue 生態系中的核心測試工具與最佳實踐,包括使用 Vitest 進行單元測試、Vue Test Utils 進行元件測試、模擬(mocking)與各種測試模式。此外,也包含了使用 Playwright 進行端對端(E2E)測試的指南。無論您是在 Claude Code、Cursor 或其他支援技能的 AI 代理程式中使用,此技能都能提供清楚、實用的測試策略與程式碼範例,幫助您建立穩固的測試基礎,提升程式碼品質與可靠性。
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-testing-best-practicesInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
用於 Vue.js 測試,涵蓋 Vitest、Vue Test Utils、元件測試、模擬、測試模式,以及 Playwright 端對端測試。
This repo contains 7 individual skills — each has its own dedicated page.
Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.
MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
Pinia stores, state management patterns, store setup, and reactivity with stores.
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.