Skip to content

Fix codegen crash on list text segments and support latest Figma API #110

Fix codegen crash on list text segments and support latest Figma API

Fix codegen crash on list text segments and support latest Figma API #110

Triggered via pull request September 3, 2026 10:20
Status Failure
Total duration 17s
Artifacts

CI.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors
Test
Process completed with exit code 1.
error: expect(received).toMatchSnapshot(expected): src/codegen/__tests__/codegen-viewport.test.ts#L996
"export interface StatusProps { status: 'success' | 'warning' | 'error' } export function Status({ status }: StatusProps) { return ( - <Image - src={{ - success: "/icons/status=success.svg", - warning: "/icons/status=warning.svg", - error: "/icons/status=error.svg" - }[status]} - /> + <> + {status === "success" && <Image boxSize="100%" src="/icons/status=success.svg" />} + {status === "warning" && <Image src="/icons/status=warning.svg" />} + {status === "error" && ( + <Box + bg="#FFF" + boxSize="100%" + maskImage="url(/icons/status=error.svg)" + maskPos="center" + maskRepeat="no-repeat" + maskSize="contain" + /> + )} + </> ) }" - Expected - 7 + Received + 14 at <anonymous> (/home/runner/work/devup-figma-plugin/devup-figma-plugin/src/codegen/__tests__/codegen-viewport.test.ts:996:27)