A2UI
A2UI copied to clipboard
Create 1P testing utilities for Angular
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.
A2UI Triage: Marking as P2 and labeling for the Angular renderer.
Closing as completed: setComponentProps and createBoundProperty are exported from @a2ui/angular/v0_9/testing (test-utils.ts), and v1.0 renders universal web components through ComponentHostComponent.