Schematics testing infrastructure: compare Trees, copy Trees
未關閉
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