angular / angular/angular-cli

Schematics testing infrastructure: compare Trees, copy Trees

Aperta
#12,707 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: @angular-devkit/schematics feature feature: insufficient votes
Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
14h 23m
PR unite (30g)
162

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia esaminando l’infrastruttura di test di Schematics e le API Tree e Rule referenziate nell’issue. Determina come devono comportarsi l’equivalenza e la copia degli alberi, quindi aggiungi una copertura che dimostri che gli alberi equivalenti vengono confrontati correttamente e che un albero copiato può essere verificato per rilevare modifiche dopo una chiamata a una regola.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
testing, tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.