mcpField
V
vue-testing-best-practices

vue-testing-best-practices

github.com/liangmiqwq测试与质量139 次安装1 天前更新
代码仓库

关于 vue-testing-best-practices

介绍 Vue.js 测试实践、模式和常见问题的技能,指导开发者配置测试、测试组件与 composable、处理异步行为并开展端到端测试。

主要功能

  1. 01Vue 3 测试配置建议
  2. 02组件与 composable 测试模式
  3. 03异步测试与竞态处理
  4. 04选择浏览器或 Node 测试运行器
  5. 05端到端测试框架建议

适用场景

  1. 01选择 Vue 3 测试配置
  2. 02测试使用生命周期钩子的 composable
  3. 03排查异步测试不稳定问题
  4. 04测试 DOM 事件和计算样式

安装

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

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