import { describe, it, expect } from 'vitest' import type { TypeOf } from 'zod' import ComponentRender from '../component-render' import { USkeleton } from '#components' describe('Skeleton', () => { it.each([ ['basic case', { }], [''], [''] ])('renders %s correctly', async (nameOrHtml: string, options?: TypeOf) => { const html = await ComponentRender(nameOrHtml, options, USkeleton) expect(html).toMatchSnapshot() }) })