vue-testing-best-practices
moeru-ai/airi/.agents/skills/vue-testing-best-practices/SKILL.md
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Skill50k starsChanged 3 days ago
What's in it
- Testing
- Reference
--- name: vue-testing-best-practices version: 1.0.0 license: MIT author: github.com/vuejs-ai description: Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing. --- Vue.js testing best practices, patterns, and common gotchas. ### Testing - Setting up test infrastructure for Vue 3 projects → See [testing-vitest-recommended-for-vue](reference/testing-vitest-recommended-for-vue.md) - Tests keep breaking when refactoring component internals → See [testing-component-blackbox-approach](reference/testing-component-blackbox-approach.md) - Tests fail intermittently with race conditions → See [testing-async-await-flushpromises](reference/testing-async-await-flushpromises.md) - Composables using lifecycle hooks or inject fail to test → See [testing-composables-helper-wrapper](reference/testing-composables-helper-wrapper.md) - Getting "injection Symbol(pinia) not found" errors in tests → See [testing-pinia-store-setup](reference/testing-pinia-store-setup.md) - Components with async setup won't render in tests → See [testing-suspense-async-components](reference/testing-suspense-async-components.md) - Snapshot tests keep passing despite broken functionality → See [testing-no-snapshot-only](reference/testing-no-snapshot-only.md) - Choosing end-to-end testing framework for Vue apps → See [testing-e2e-playwright-recommended](reference/testing-e2e-playwright-recommended.md) - Tests need to verify computed styles or real DOM events → See [testing-browser-vs-node-runners](reference/testing-browser-vs-node-runners.md) - Testing components created with defineAsyncComponent fails → See [async-component-testing](reference/async-component-testing.md) - Teleported modal content can't be found in wrapper queries → See [teleport-testing-complexity](reference/teleport-testing-complexity.md) ## Reference - [Vue.js Testing Guide](https://vuejs.org/guide/scaling-up/testing) - [Vue Test Utils](https://test-utils.vuejs.org/) - [Vitest Documentation](https://vitest.dev/) - [Playwright Documentation](https://playwright.dev/)
More agent context in moeru-ai/airi
36 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Copilot instructions
Skill
- agent-browser-electron.agents/skills/agent-browser-electron/SKILL.md
- agent-browser.agents/skills/agent-browser/SKILL.md
- analyze-io-traces.agents/skills/analyze-io-traces/SKILL.md
- create-pr.agents/skills/create-pr/SKILL.md
- enforce-rules-for-i18n.agents/skills/enforce-rules-for-i18n/SKILL.md
- enforce-rules-for-pinia-synced.agents/skills/enforce-rules-for-pinia-synced/SKILL.md
- enforce-rules-for-typescript.agents/skills/enforce-rules-for-typescript/SKILL.md
- enforce-rules-for-unocss.agents/skills/enforce-rules-for-unocss/SKILL.md
- enforce-rules-for-vitest.agents/skills/enforce-rules-for-vitest/SKILL.md
- eventa.agents/skills/eventa/SKILL.md
- pinia.agents/skills/pinia/SKILL.md
- pnpm.agents/skills/pnpm/SKILL.md
- release-note-writer.agents/skills/release-note-writer/SKILL.md
- simple-english.agents/skills/simple-english/SKILL.md
- stage-tamagotchi-godot-csharp.agents/skills/stage-tamagotchi-godot-csharp/SKILL.md
- tsdown.agents/skills/tsdown/SKILL.md
- unocss.agents/skills/unocss/SKILL.md
- upload-github-attachment.agents/skills/upload-github-attachment/SKILL.md
- use-agent-browser-for-airi.agents/skills/use-agent-browser-for-airi/SKILL.md
- use-agent-browser-with-input-file.agents/skills/use-agent-browser-with-input-file/SKILL.md
- use-vishot-for-airi.agents/skills/use-vishot-for-airi/SKILL.md
- use-vishot.agents/skills/use-vishot/SKILL.md
- use-vishot-with-capacitor.agents/skills/use-vishot-with-capacitor/SKILL.md
- use-vishot-with-electron.agents/skills/use-vishot-with-electron/SKILL.md
- use-vishot-with-input-file.agents/skills/use-vishot-with-input-file/SKILL.md
- use-vishot-with-web.agents/skills/use-vishot-with-web/SKILL.md
- vue-best-practices.agents/skills/vue-best-practices/SKILL.md
- vue.agents/skills/vue/SKILL.md
- vueuse-functions.agents/skills/vueuse-functions/SKILL.md
- web-design-guidelines.agents/skills/web-design-guidelines/SKILL.md
- xsai.agents/skills/xsai/SKILL.md
Also found in 7 other repositories
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

