a2ui-project / a2ui-project/a2ui
Create 1P testing utilities for Angular
- Vorherrschende Sprache
- TypeScript
- Sterne
- 16.4k
- Forks
- 1.3k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 134
Beschreibung
Need a way to ergonomically set props on components during unit tests. This should be part of a testing public API
Something like
```
setProps(componentInstance, {
prop1: 'foo',
prop2: 42,
})
```
and setProps would take care of providing a type safe signature, also create the BoundProperty objects.
Beitragsleitfaden
Rechercherichtung
Look for existing testing utilities in the codebase, likely under a directory like `testing/` or `src/testing/`. Understand how components are currently tested and how BoundProperty objects are created. The goal is to design and implement a `setProps` function that integrates with Angular's testing APIs and provides type safety.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100