mcpField
V
vue-testing-best-practices

vue-testing-best-practices

github.com/antfu测试与质量6.0k17.2k 次安装5 天前更新
代码仓库

关于 vue-testing-best-practices

面向 Vue.js 应用测试的实践参考,涵盖测试配置选择与常见问题,适用于测试组件、composable 和端到端流程的 Vue 开发者。

主要功能

  1. 01Vue 3 测试配置建议
  2. 02组件黑盒测试
  3. 03异步与生命周期测试模式
  4. 04Pinia 与 Suspense 配置
  5. 05浏览器与 Node 运行器选择

适用场景

  1. 01选择 Vue 测试基础设施
  2. 02测试使用注入机制的 composable
  3. 03排查不稳定的异步测试

安装

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

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

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

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

LICENSE.md
SYNC.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