fix invalid name of snippet identifier transformation #123
Annotations
3 errors
src/compiler/pre-transform/index.test.ts#L121
Error: Snapshot `codemodLegacyNodes > transforms legacy syntax correctly 1` mismatched
- Expected
+ Received
@@ -7,11 +7,11 @@
{#snippet sample(args, context)}
<p>{context.id}</p>
<Button {...args} />
{/snippet}
- <Story name="Default" children={Sample} tags={["autodocs"]} parameters={{
+ <Story name="Default" children={sample} tags={["autodocs"]} parameters={{
docs: { source: { code: "<Button {...args} />" } }
}}>
{#snippet children(args, context)}
<p>{context.id}</p>
<Button {...args} />
❯ src/compiler/pre-transform/index.test.ts:121:32
|
src/compiler/pre-transform/codemods/legacy-story.test.ts#L156
Error: Snapshot `transformLegacyStory > transforms 'template' prop to 'children' and text expression becomes expression tag with identifier to snippet 1` mismatched
- Expected
+ Received
- "<Story name="Default" children={SomeTemplate} />"
+ "<Story name="Default" children={someTemplate} />"
❯ src/compiler/pre-transform/codemods/legacy-story.test.ts:156:51
|
|
This job failed
Loading