refactor(pdf): R4.8 the TypeScript PDF engine leaves: packages/pdf, pdf-lib, the TS CLI and import path, the oracle generators deleted; test read-back on an own reader of the writer's files (pdfFile.ts), view goldens from the session's SVGs, import helper on the module's reader, N-1 scanner exported by core-wasm/n-1; app no longer depends on @faunosteo/domain; r4.census suite

This commit is contained in:
bchanot committed 2026-10-19 12:17:01 +02:00
1 parent 77e11a53e4
commit 0dc1ba27c7
96 files changed
+743 -15769

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@
import { describe, it, expect, vi, beforeAll } from 'vitest'
import type { Finding, Report } from '@faunosteo/core-wasm/types'
import { exportReportToPdf } from '@/pdf/export'
import { importAttachment, importReportFromPdf } from '@/pdf/import'
import { importAttachment, importReportFromPdf } from '../helpers/pdfImport'
import type { SheetIndex } from '@/services/sheetIndex'
import { findingNodeAt, loadTestSheet } from '../helpers/sheet'
import {
@@ -57,7 +57,7 @@ describe('the 612 legacy leaves in the application', () => {
it('keeps every finding, resolved or not, through an archive PDF export and import', async () => {
const { pdf } = await exportReportToPdf(report, sheet, { locale: 'fr' })
const bytes = new Uint8Array(await pdf.arrayBuffer())
const { read: back } = await importReportFromPdf(bytes, sheet)
const { read: back } = await importReportFromPdf(bytes)
expect(back.migrated).toBe(false)
expect(back.origin).toBe('envelope_v1')
expect(back.archive).not.toBeNull()