You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to the implementation of render function for component is possible to create a renderDirective that it will make possible to test attribute directives.
I thought something like this for the implementation that i think it will made this possible:
the upper implementation is a partial implementation derivative from this interface:
exportinterfaceDirectiveRenderOptions{/** Template to render the directive in. Must include the directive selector. */template: string;/** Host component input values to pass and make reactive. */hostProps?: Record<string,unknown>;/** Additional imports for the test host component */imports?: any[]|Type<any>[];/** Additional providers for the test module. */providers?: Provider[];/** The base element for screen queries. Defaults to document.body. */baseElement?: HTMLElement;}
Activity
shairez commentedon Sep 16, 2026
closing as a follow up on #29
Thanks again for the contribution!