V
vue-testing-best-practices
by @antfuv
4.5(156)
Vitest、Vue Test Utils、コンポーネントテストを含むVue.jsテストのベストプラクティスを習得し、Vueアプリケーションの高品質と安定性を保証します。
インストール方法
npx skills add antfu/skills --skill vue-testing-best-practicescompare_arrows
Before / After 効果比較
1 组使用前
統一されたVue.jsテストのベストプラクティスがない場合、開発者は一貫性のないテストフレームワークや手法を採用する可能性があり、テストカバレッジの不足、テストコードの保守性の低下、テスト効率の低下を招き、プロジェクトの品質とイテレーション速度に悪影響を及ぼします。
使用後
Vue.jsテストのベストプラクティスに従い、VitestやVue Test Utilsなどのツールを組み合わせることで、コンポーネントテストを体系的に実施できます。これにより、テストコードの品質と保守性が確保され、テスト効率とコンポーネントの安定性が大幅に向上し、開発プロセスが加速されます。
SKILL.md
Vue.js testing best practices, patterns, and common gotchas.
Testing
- Setting up test infrastructure for Vue 3 projects → See testing-vitest-recommended-for-vue
- Tests keep breaking when refactoring component internals → See testing-component-blackbox-approach
- Tests fail intermittently with race conditions → See testing-async-await-flushpromises
- Composables using lifecycle hooks or inject fail to test → See testing-composables-helper-wrapper
- Getting "injection Symbol(pinia) not found" errors in tests → See testing-pinia-store-setup
- Components with async setup won't render in tests → See testing-suspense-async-components
- Snapshot tests keep passing despite broken functionality → See testing-no-snapshot-only
- Choosing end-to-end testing framework for Vue apps → See testing-e2e-playwright-recommended
- Tests need to verify computed styles or real DOM events → See testing-browser-vs-node-runners
- Testing components created with defineAsyncComponent fails → See async-component-testing
- Teleported modal content can't be found in wrapper queries → See teleport-testing-complexity
Reference
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数11.8K
評価4.5 / 5.0
バージョン
更新日2026年5月23日
比較事例1 件
ユーザー評価
4.5(156)
5
23%
4
52%
3
23%
2
2%
1
0%
この Skill を評価
0.0
対応プラットフォーム
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
タイムライン
作成2026年3月16日
最終更新2026年5月23日