a2ui-project / a2ui-project/a2ui

Create 1P testing utilities for Angular

Đang mở
#1,519 1 bình luận 0 reaction 1 người được giao Được giao cho @josemontespg Xem trên GitHub
component: angular renderer P2 type: feature/enhancement
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.