import { describe, expect, it } from 'vitest'; import { renderPdf } from '@/lib/pdf/render'; import { BerthSpecPdf } from '@/lib/pdf/templates/berth-spec'; import { ClientSummaryPdf } from '@/lib/pdf/templates/client-summary'; import { InterestSummaryPdf } from '@/lib/pdf/templates/interest-summary'; describe('record export templates render', () => { it('client summary renders with contacts, yachts, interests', async () => { const bytes = await renderPdf( , ); expect(bytes.subarray(0, 5).toString('utf8')).toBe('%PDF-'); }, 30_000); it('berth spec renders with waiting list + maintenance', async () => { const bytes = await renderPdf( , ); expect(bytes.subarray(0, 5).toString('utf8')).toBe('%PDF-'); }, 30_000); it('interest summary renders with all sections', async () => { const bytes = await renderPdf( , ); expect(bytes.subarray(0, 5).toString('utf8')).toBe('%PDF-'); }, 30_000); it('berth spec handles minimal/empty inputs', async () => { const bytes = await renderPdf( , ); expect(bytes.subarray(0, 5).toString('utf8')).toBe('%PDF-'); }, 30_000); });