angular / angular/angular-cli

Schematics testing infrastructure: compare Trees, copy Trees

未关闭
#12,707 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/schematics feature feature: insufficient votes
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x] feature request
```

### Desired functionality

When unit testing a schematic or a rule, I have sometimes found that it would be convenient if I could take two trees and compare them. Or at least ask whether the two trees are equivalent.

As part of this, it would also be convenient if there was some Tree-copying function - specifically for checking that a Tree has _not_ changed after some Rule call, but possibly for other cases as well.

贡献指南

打开贡献指南

调研方向

首先检查 Schematics 的测试基础设施,以及 issue 中引用的 Tree 和 Rule API。确定树的等价性和复制应如何工作,然后添加覆盖,证明等价的树可以成功进行比较,并且可以在调用 rule 后检查复制的树是否发生更改。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
testing, tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。