·vitest
</>

vitest

使用 React 测试库进行 Vitest 单元测试模式。触发器:为 React 组件、挂钩或实用程序编写单元测试时。

29安装·1热度·@prowler-cloud

安装

$npx skills add https://github.com/prowler-cloud/prowler --skill vitest

如何安装 vitest

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

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

来源:prowler-cloud/prowler。

SKILL.md

查看原文

For E2E tests: Use prowler-test-ui skill (Playwright). This skill covers unit/integration tests with Vitest + React Testing Library.

| 1 | getByRole | Buttons, inputs, headings | | 2 | getByLabelText | Form fields | | 3 | getByPlaceholderText | Inputs without label | | 4 | getByText | Static text | | 5 | getByTestId | Last resort only |

| vi.spyOn | Observe without replacing (PREFERRED) | | vi.mock | Replace entire module (use sparingly) |

使用 React 测试库进行 Vitest 单元测试模式。触发器:为 React 组件、挂钩或实用程序编写单元测试时。 来源:prowler-cloud/prowler。

可引用信息

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

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

Browse more skills from prowler-cloud/prowler

快速解答

什么是 vitest?

使用 React 测试库进行 Vitest 单元测试模式。触发器:为 React 组件、挂钩或实用程序编写单元测试时。 来源:prowler-cloud/prowler。

如何安装 vitest?

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

这个 Skill 的源码在哪?

https://github.com/prowler-cloud/prowler

详情

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