·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-11

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