From 2431558fd5eea7fc6088f398f8f2cfe48137cd2f Mon Sep 17 00:00:00 2001 From: James Kurz Date: Thu, 22 Oct 2026 14:41:18 -0400 Subject: [PATCH] Give semantic PDF layout verification its rendering budget --- packages/documents/src/semantic-pdf.integration.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/documents/src/semantic-pdf.integration.test.ts b/packages/documents/src/semantic-pdf.integration.test.ts index c07b3e8f..7f750b3d 100644 --- a/packages/documents/src/semantic-pdf.integration.test.ts +++ b/packages/documents/src/semantic-pdf.integration.test.ts @@ -92,6 +92,9 @@ function kindAnchors(input: CommerceDocumentInput): readonly string[] { } describe("semantic PDF verification with Poppler", () => { + // Cold React PDF/font setup plus Poppler exceeded Vitest's default 5s on + // the shared CI runner. Match the other single-document PDF tests' 30s + // budget; this checks geometry, not rendering latency. it("keeps wrapped quote details above the fixed footer on every page", async () => { const input = demoDocuments.find( (document) => document.kind === "direct_quote", @@ -119,7 +122,7 @@ describe("semantic PDF verification with Poppler", () => { } } expect(detailCount).toBeGreaterThan(30); - }); + }, 30_000); it("extracts immutable identity, parties, version, source hash, and kind-specific truth for all 15 kinds", async () => { for (const input of demoDocuments) {