Vue Testing Best Practices
技能 已验证 活跃Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
To guide users in effectively testing Vue.js applications by covering essential tools, patterns, and common pitfalls.
功能
- Vitest setup and recommendations
- Vue Test Utils component testing patterns
- Mocking strategies for composables and Pinia
- Handling async operations and race conditions
- Playwright for end-to-end testing guidance
使用场景
- Setting up a Vitest testing environment for a Vue 3 project.
- Implementing black-box testing for Vue components.
- Resolving intermittent test failures due to race conditions.
- Choosing and configuring an end-to-end testing framework for Vue apps.
非目标
- Providing executable test code, but rather guidance on how to write it.
- Covering testing for Vue 2 or non-Vue JavaScript projects.
安装
请先添加 Marketplace
/plugin marketplace add hyf0/vue-skills/plugin install vue-skills@vue-skills质量评分
已验证类似扩展
Develop Web Game
100Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with render_game_to_text.
Playwright Best Practices
100用于编写 Playwright 测试、修复不稳定测试、调试失败、实现页面对象模型 (Page Object Model)、配置 CI/CD、优化性能、模拟 API、处理身份验证或 OAuth、测试可访问性 (axe-core)、文件上传/下载、日期/时间模拟、WebSockets、地理定位、权限、多标签/弹出窗口流程、移动/响应式布局、触摸手势、GraphQL、错误处理、离线模式、多人协作、第三方服务(付款、电子邮件验证)、控制台错误监控、全局设置/拆卸、测试注解(skip, fixme, slow)、测试标签(@smoke, @fast, @critical, 使用 --grep 过滤)、项目依赖项、安全测试(XSS, CSRF, 身份验证)、性能预算(Web Vitals, Lighthouse)、iframe、组件测试、canvas/WebGL、服务工作线程/PWA、测试覆盖率、i18n/本地化、Electron 应用或浏览器扩展测试。涵盖 E2E、组件、API、视觉、可访问性、安全、Electron 和扩展测试。
Vitest
97Vitest - Modern TypeScript testing framework with Vite-native performance, ESM support, and TypeScript-first design
Testrail
100Sync tests with TestRail. Use when user mentions "testrail", "test management", "test cases", "test run", "sync test cases", "push results to testrail", or "import from testrail".
Test A2a Interop
100Test A2A interoperability between agents by validating Agent Card conformance, exercising all task lifecycle states, and verifying streaming and error handling. Use when verifying a new A2A server implementation before deployment, validating interoperability between two or more A2A agents, running conformance tests in CI/CD for A2A services, debugging failures in multi-agent A2A workflows, or certifying that an agent meets A2A protocol requirements for a registry.
Run Puzzle Tests
100Run the jigsawR test suite via WSL R execution. Supports full suite, filtered by pattern, or single file. Interprets pass/fail/skip counts and identifies failing tests. Never uses --vanilla flag (renv needs .Rprofile for activation). Use after modifying any R source code, after adding a new puzzle type or feature, before committing changes to verify nothing is broken, or when debugging a specific test failure.