import { describe, expect, test } from 'bun:test'; import { ZORA_COMPONENT_META } from '../../../authoring'; describe('ProductCard', () => { test('is registered as a public ZORA pattern', () => { expect(ZORA_COMPONENT_META.ProductCard?.name).toBe('ProductCard'); expect(ZORA_COMPONENT_META.ProductCard?.category).toBe('pattern'); expect(ZORA_COMPONENT_META.ProductCard?.directManifestNode).toBe(true); expect(ZORA_COMPONENT_META.ProductCard?.allowedChildren).toEqual([]); expect(ZORA_COMPONENT_META.ProductCard?.requirements).toBeUndefined(); }); test('has correct event metadata', () => { expect(ZORA_COMPONENT_META.ProductCard?.events?.press).toBeDefined(); expect(ZORA_COMPONENT_META.ProductCard?.events?.primaryAction).toBeDefined(); expect(ZORA_COMPONENT_META.ProductCard?.events?.secondaryAction).toBeDefined(); }); });