mcpField
V
vue-testing-best-practices

vue-testing-best-practices

github.com/vuejs-ai测试与质量3.2k14.0k 次安装5 天前更新
代码仓库

关于 vue-testing-best-practices

面向 Vue 项目开发者的测试实践技能,整理测试环境、组件与 composable 测试、异步行为及浏览器与 Node 测试运行器方面的建议,并涵盖常见故障。

主要功能

  1. 01Vue 测试基础设施指南
  2. 02组件黑盒测试模式
  3. 03异步与生命周期测试建议
  4. 04Pinia 与 Suspense 测试配置
  5. 05浏览器和 Node 运行器考量

适用场景

  1. 01为 Vue 3 选择测试配置
  2. 02排查不稳定的异步测试
  3. 03测试使用生命周期钩子的 composable
  4. 04测试 Teleport 或异步组件

安装

复制下面的命令,在终端中运行。

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

安装后在 Claude Code 中输入/vue-testing-best-practices确认已加载。

包含的文件

除 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

详细介绍

Vue.js 测试最佳实践、模式和常见陷阱。

测试

参考

评论

支持 Markdown