import { AnatomicalSheetDocumentSchema, validateSheetDocument, } from '@faunosteo/domain' import { importEquineLegacy, renderArtifacts } from '../src' import { loadInput, runImport } from './helpers' describe('equine document', () => { it('parses and validates with no error and no warning', async () => { const { document, issues } = await runImport() const parsed = AnatomicalSheetDocumentSchema.parse(document) expect(validateSheetDocument(parsed)).toEqual([]) expect(issues).toEqual([]) }) it('is deterministic: same result and same bytes on two runs', async () => { const input = await loadInput() const first = importEquineLegacy(input) const second = importEquineLegacy(input) expect(second).toEqual(first) expect(await renderArtifacts(second)).toEqual(await renderArtifacts(first)) }) })