mcpField
V
vue-testing-best-practices

vue-testing-best-practices

github.com/vuejs-aiTesting & quality3.2k14.0k installsUpdated 5d ago
Repository

About vue-testing-best-practices

A Vue.js testing practice skill for developers working on Vue projects. It groups advice on test setup, component and composable tests, async behavior, and browser versus Node test runners, including common failure modes.

Key features

  1. 01Vue test infrastructure guidance
  2. 02Component black-box testing patterns
  3. 03Async and lifecycle testing advice
  4. 04Pinia and Suspense test setup
  5. 05Browser and Node runner considerations

Use cases

  1. 01Choosing a testing setup for Vue 3
  2. 02Investigating flaky asynchronous tests
  3. 03Testing composables that use lifecycle hooks
  4. 04Testing teleported or async components

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vuejs-ai/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.

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