·vitest-testing
</>

vitest-testing

为此 Nuxt 4 项目编写并运行 Vitest 单元测试。创建或修改可组合项、组件、服务、实用程序或 Lambda 处理程序时自动触发。每当编写测试、添加测试覆盖率、测试新功能、修复错误(首先编写回归测试)或当用户提到测试、单元测试、vitest、TDD、覆盖率或测试覆盖率时,请使用此技能。在 app/composables/、app/components/、app/utils/、services/ 或 terraform/lambda/src/ 中创建任何新文件时也可使用。

14安装·5热度·@ralphcrisostomo

安装

$npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill vitest-testing

如何安装 vitest-testing

通过命令行快速安装 vitest-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill vitest-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:ralphcrisostomo/nuxt-development-skills。

SKILL.md

查看原文

| app/composables/ .ts | tests/app/composables/ .test.ts | | app/components/ .vue | app/components/tests/ .test.ts (DOM tests) OR tests/app/components/ .test.ts (logic-only) | | app/utils/ .ts | tests/app/utils/ .test.ts | | services/ .ts | tests/services/ .test.ts | | utils/ .ts | tests/utils/ .test.ts |

| terraform/lambda/src/ /index.ts | terraform/lambda/src/ /tests/index.test.ts |

Use tests/ co-location only for component DOM tests and Lambda handlers. Everything else goes in the top-level tests/ mirror tree.

为此 Nuxt 4 项目编写并运行 Vitest 单元测试。创建或修改可组合项、组件、服务、实用程序或 Lambda 处理程序时自动触发。每当编写测试、添加测试覆盖率、测试新功能、修复错误(首先编写回归测试)或当用户提到测试、单元测试、vitest、TDD、覆盖率或测试覆盖率时,请使用此技能。在 app/composables/、app/components/、app/utils/、services/ 或 terraform/lambda/src/ 中创建任何新文件时也可使用。 来源:ralphcrisostomo/nuxt-development-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill vitest-testing
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from ralphcrisostomo/nuxt-development-skills

快速解答

什么是 vitest-testing?

为此 Nuxt 4 项目编写并运行 Vitest 单元测试。创建或修改可组合项、组件、服务、实用程序或 Lambda 处理程序时自动触发。每当编写测试、添加测试覆盖率、测试新功能、修复错误(首先编写回归测试)或当用户提到测试、单元测试、vitest、TDD、覆盖率或测试覆盖率时,请使用此技能。在 app/composables/、app/components/、app/utils/、services/ 或 terraform/lambda/src/ 中创建任何新文件时也可使用。 来源:ralphcrisostomo/nuxt-development-skills。

如何安装 vitest-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill vitest-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/ralphcrisostomo/nuxt-development-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-10