Closed
Description
I'm having an issue when trying to test custom elements (using jsdom) in Svelte.
When I use const result = render(MyComponent, { props: { options: '["v1","v2","v3"]', value: '', multiple: false } });
the component get rendered and all functions work as it should.
However the extend in this part of the code is never executed:
<svelte:options
customElement={{
tag: 'atp-select',
shadow: 'none',
extend: customElementConstructor => {
return class extends customElementConstructor {
constructor() {
console.log('customElementConstructor called');
super();
this.self = this;
}
};
},
}}
/>
How can I make sure the code int the extend is executed when testing?
Metadata
Metadata
Assignees
Labels
No labels