Angular测试

saksham123107-pixel2026-10-27查看 366复制 563

已弃用 - 此技能不再维护。请使用 https://github.com/angular/skills 上的官方 Angular 技能。使用 Vitest 或 Jasmine 以及 TestBed 和现代测试模式为 Angular v20+ 应用程序编写单元和集成测试。用于通过信号、OnPush 更改检测、inject() 服务和 HTTP 交互来测试组件。触发测试创建、测试基于信号的组件、模拟依赖关系或设置测试基础设施。请勿用于 E2E t...

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1124 chars
---
name: angular-testing
description: DEPRECATED - this skill is unmaintained. Use the official Angular skills at https://github.com/angular/skills instead. Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns. Use for testing components with signals, OnPush change detection, services with inject(), and HTTP interactions. Triggers on test creation, testing signal-based components, mocking dependencies, or setting up test infrastructure. Don't use for E2E testing with Cypress or Playwright, or for testing non-Angular JavaScript/TypeScript code.
---

# Angular Testing

> **⚠️ Deprecated.** This skill is no longer maintained, and its guidance has been
> removed rather than left to go stale. The Angular team now publishes official
> skills at [angular/skills](https://github.com/angular/skills) — install those
> instead:
>
> ```sh
> npx skills add https://github.com/angular/skills
> ```
>
> To remove these: `npx skills remove analogjs/angular-skills`

The previous contents of this skill remain available in this repository's git
history.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧