diff --git a/src/codegen/__tests__/__snapshots__/codegen.test.ts.snap b/src/codegen/__tests__/__snapshots__/codegen.test.ts.snap index 83a6105..c2b342b 100644 --- a/src/codegen/__tests__/__snapshots__/codegen.test.ts.snap +++ b/src/codegen/__tests__/__snapshots__/codegen.test.ts.snap @@ -392,7 +392,6 @@ exports[`Codegen renders text node with ellipsis props 1`] = ` exports[`Codegen renders text node with single drop shadow 1`] = ` " | undefined { if ('effects' in node && node.effects.length > 0) { - return node.effects.reduce( + // TEXT nodes use textShadow for DROP_SHADOW (handled by text-shadow.ts) + const effects = + node.type === 'TEXT' + ? node.effects.filter((e) => e.type !== 'DROP_SHADOW') + : node.effects + if (effects.length === 0) return + return effects.reduce( (acc, effect) => { const props = _getEffectPropsFromEffect(effect) for (const [key, value] of Object.entries(props)) {