refactor(ct-angular): clean up slots remains

This commit is contained in:
Younes Jaaidi 2024-02-23 18:01:59 +01:00
parent e22b5cf85c
commit fb3dd0cf8f
No known key found for this signature in database
GPG key ID: 3126C5717BDF3241
2 changed files with 0 additions and 7 deletions

View file

@ -36,15 +36,11 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
};
};
type ComponentSlot = string | string[];
type ComponentSlots = Record<string, ComponentSlot> & { default?: ComponentSlot };
type ComponentEvents = Record<string, Function>;
export interface MountOptions<HooksConfig extends JsonObject, Component> {
props?: Partial<Component> | Record<string, unknown>, // TODO: filter props and handle signals
providers?: Provider[],
slots?: ComponentSlots;
on?: ComponentEvents;
hooksConfig?: HooksConfig;
}

View file

@ -68,9 +68,6 @@ window.playwrightUnmount = async rootElement => {
* @param {{type: import('@angular/core').Type<unknown>} & import('./index').MountOptions | {type: string} & import('./index').MountTemplateOptions} component
*/
window.playwrightUpdate = async (rootElement, component) => {
if (component.slots)
throw new Error('Update slots is not supported yet');
const fixture = __pwFixtureRegistry.get(rootElement.id);
if (!fixture)
throw new Error('Component was not mounted');