A2UI icon indicating copy to clipboard operation
A2UI copied to clipboard

Create 1P testing utilities for Angular

Open josemontespg opened this issue 6 months ago • 2 comments

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.

josemontespg avatar Jun 02 '26 21:06 josemontespg

A2UI Triage: Marking as P2 and labeling for the Angular renderer.

gspencergoog avatar Jun 29 '26 18:06 gspencergoog

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.

josemontespg avatar Oct 30 '26 21:10 josemontespg