Description
Perhaps this is more svelte API question, but it's not clear how to test component slots, for example:
Badge.svelte:
<span class="badge">
<slot />
</span>
Badge.spec.js:
describe('Badge', () => {
test('should render text', () => {
// Where to pass child text?
const { container } = render(Badge, { props: { color: 'primary' } });
});
});
Looking for default slots primarily, and do not want to add props for this.
Metadata
Metadata
Assignees
Labels
No labels