
Vue Testing Best Practices
SkillTesting practices for Vue apps: Vitest and Vue Test Utils, black-box component tests, flushPromises for async code, helpers for testing composables, Pinia stores, async components and Teleport, avoiding snapshot-only tests, and Playwright for end-to-end testing.
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
- 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
관련 리소스

TestMu AI (LambdaTest) Agent Skills
SkillOfficial testing skills from TestMu AI (formerly LambdaTest) covering 40+ frameworks including Selenium, Playwright, Cypress, Appium, pytest and JUnit, guiding agents to write unit, end-to-end and mobile tests. Runs locally; cloud cross-browser and real-device runs need an account.
LambdaTest/agent-skills376
webapp-testing
SkillDrives local web apps with Python Playwright scripts to verify features, debug the UI, take screenshots and read browser logs. Includes helper scripts to start and stop dev servers. Official Anthropic skill.
anthropics/skills182k
Playwright CLI
SkillCompanion skill for the official Playwright CLI: short commands to open pages, click and fill forms, take snapshots and screenshots, and write and debug Playwright tests, using less context than the MCP approach. Maintained by Microsoft; needs Node.js.
microsoft/playwright-cli14.3k
Frontend Testing Debugging
SkillTests and debugs a locally running frontend with Codex's Browser plugin or Playwright: checks blank pages, framework and console errors, captures screenshots, re-verifies after fixes and writes a QA report. Maintained by OpenAI; formerly playwright-interactive in openai/skills.
openai/plugins7.5k
Vitest
SkillReference for Vitest 5: config, CLI, the test, describe and expect APIs, hooks, mocking with vi, snapshots, coverage, fixtures, concurrency, filtering and tags, reporters, benchmarks, test environments, type testing and multi-project setups. Generated by Anthony Fu from the official docs.
antfu/skills6k
Playwright Skill
SkillLets agents write and run Playwright scripts on the fly for browser testing and automation, auto-detecting local dev servers, with screenshots, responsive checks, login flows and link checking. After installing, run npm run setup in the skill directory.
lackeyjb/playwright-skill3.2k