·angular-testing
*

angular-testing

使用 Jest 和 @testing-library/Angular 为 Angular v21+ 应用程序编写单元和集成测试,重点关注以用户为中心的测试、AAA 模式和现代 Angular 模式(独立组件、信号)。用于测试组件、服务以及与 Jest 全局变量和测试库 DOM 匹配器的 HTTP 交互。

18安装·1热度·@zard-ui

安装

$npx skills add https://github.com/zard-ui/zardui --skill angular-testing

如何安装 angular-testing

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

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

来源:zard-ui/zardui。

SKILL.md

查看原文

Test Angular v21+ applications with Jest and @testing-library/angular, prioritizing user-centric testing over implementation details.

Each it block must be self-contained. Use beforeEach only for setup truly shared across all tests.

Use userEvent from @testing-library/user-event for realistic interactions instead of native DOM events.

使用 Jest 和 @testing-library/Angular 为 Angular v21+ 应用程序编写单元和集成测试,重点关注以用户为中心的测试、AAA 模式和现代 Angular 模式(独立组件、信号)。用于测试组件、服务以及与 Jest 全局变量和测试库 DOM 匹配器的 HTTP 交互。 来源:zard-ui/zardui。

可引用信息

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

安装命令
npx skills add https://github.com/zard-ui/zardui --skill angular-testing
分类
*创意媒体
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from zard-ui/zardui

快速解答

什么是 angular-testing?

使用 Jest 和 @testing-library/Angular 为 Angular v21+ 应用程序编写单元和集成测试,重点关注以用户为中心的测试、AAA 模式和现代 Angular 模式(独立组件、信号)。用于测试组件、服务以及与 Jest 全局变量和测试库 DOM 匹配器的 HTTP 交互。 来源:zard-ui/zardui。

如何安装 angular-testing?

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

这个 Skill 的源码在哪?

https://github.com/zard-ui/zardui