diff --git a/src/index.test.ts b/src/index.test.ts index 54a3e4e..71c6f61 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -133,7 +133,6 @@ describe("component 'Story' destructured from 'defineMeta", () => { expectTypeOf(Story).toMatchTypeOf>>(); expectTypeOf().not.toBeNever(); - expectTypeOf['children']>().not.toBeNullable(); expectTypeOf['args']>().toBeNullable(); expectTypeOf['args']>['children']>().toBeNullable(); expectTypeOf().toHaveProperty('name'); diff --git a/tests/stories/Example.stories.svelte b/tests/stories/Example.stories.svelte index 1a19f4c..a24096f 100644 --- a/tests/stories/Example.stories.svelte +++ b/tests/stories/Example.stories.svelte @@ -40,7 +40,11 @@ setTemplate(render); -{#snippet render(args: Args, context: StoryContext)} + +{#snippet render({ children: _, ...args }: Args, context: StoryContext)}

{args.id}

{context.name}

diff --git a/tests/stories/Example.svelte b/tests/stories/Example.svelte index f28bd2e..ed4768f 100644 --- a/tests/stories/Example.svelte +++ b/tests/stories/Example.svelte @@ -1,9 +1,7 @@