mcpField
V
vue-testing-best-practices

vue-testing-best-practices

github.com/antfuTesting & quality6.0k17.2k installsUpdated 6d ago
Repository

About vue-testing-best-practices

A reference skill for testing Vue.js applications, covering setup choices and common testing pitfalls. It is intended for Vue developers working with components, composables, and end-to-end tests.

Key features

  1. 01Vue 3 test setup guidance
  2. 02Black-box component testing
  3. 03Async and lifecycle test patterns
  4. 04Pinia and Suspense setup
  5. 05Browser versus Node runner guidance

Use cases

  1. 01Choosing a Vue test infrastructure
  2. 02Testing composables that use injection
  3. 03Diagnosing flaky asynchronous tests

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/antfu/skills --skill vue-testing-best-practices

After installing, type/vue-testing-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.md
SYNC.md
reference/
async-component-testing.md
teleport-testing-complexity.md
testing-async-await-flushpromises.md
testing-browser-vs-node-runners.md
testing-component-blackbox-approach.md
testing-composables-helper-wrapper.md
testing-e2e-playwright-recommended.md
testing-no-snapshot-only.md
testing-pinia-store-setup.md
testing-suspense-async-components.md
testing-vitest-recommended-for-vue.md

Details

From the project README

Vue.js testing best practices, patterns, and common gotchas.

Testing

Reference

Comments

Markdown supported