vue-testing-best-practices 是做什么的?
用于 Vue.js 测试,涵盖 Vitest、Vue Test Utils、组件测试、模拟、测试模式以及使用 Playwright 进行端到端测试。
用于 Vue.js 测试,涵盖 Vitest、Vue Test Utils、组件测试、模拟、测试模式以及使用 Playwright 进行端到端测试。
该技能是专为 Vue.js 应用测试设计的,提供了全面的测试最佳实践指导。它涵盖了从单元测试到端到端测试的完整工具链,包括 Vitest(用于快速单元测试)、Vue Test Utils(用于 Vue 组件测试)、以及 Playwright(用于浏览器端 E2E 测试)。此外,还深入介绍了组件测试策略、模拟技巧和测试模式,帮助开发者编写更可靠、可维护的测试代码。该技能支持主流的 Vue.js 开发环境,无论是 CLI 项目、Vite 项目还是 Nuxt 项目都可以直接使用。通过遵循这些实践,开发者可以显著提升测试覆盖率与测试质量,减少线上问题。
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.