wd-David / svelte-component-test-recipes

Svelte component test recipes using Vitest & Testing Library with TypeScript
156 stars 5 forks source link

Testing a svelte component which includes webcomponents #41

Open atasoyh opened 1 year ago

atasoyh commented 1 year ago

Hi, I wished I could see a sample how to test a svelte component which uses some web-components inside. Currently the issue is, we can't get that web-components rendered like the browsers. we only see <component-element {...props}>. That's all. It would be nice to find a way. The only way I could find is using playwrrigth like e2e testing libs.. But they have other issues like mocking.. So can't really write a component test at the moment.