Files
pdfme/playground/e2e/md2PdfPresets.test.ts
Kyohei Fukuda ba50905193 [codex] Improve JSX authoring starters (#1503)
* feat(playground): improve jsx authoring starters

* refactor(playground): store authoring starters as template assets

* fix(playground): address authoring starter review
2026-05-11 15:20:03 +09:00

20 lines
627 B
TypeScript

import { md2pdf } from '@pdfme/converter/md2pdf';
import { readAuthoringStarterFixtures } from './authoringStarterFixtures';
const md2PdfPresets = readAuthoringStarterFixtures('md2pdf');
describe('md2pdf playground presets', () => {
it.each(md2PdfPresets)('converts the $label preset', async ({ source }) => {
const result = await md2pdf(source, {
style: {
fontName: 'NotoSansJP',
lineHeight: 1.3,
},
});
expect(result.inputs).toEqual([{}]);
expect(result.template.schemas.length).toBeGreaterThan(0);
expect(result.template.schemas[0]?.length).toBeGreaterThan(0);
});
});