Fix collecting token #107
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)
|