a2ui-project / a2ui-project/a2ui
Create 1P testing utilities for Angular
- Ngôn ngữ chính
- TypeScript
- Star
- 16.4k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 134
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- testing
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100