Files
pdfme/packages/cli/__tests__/schema-plugins.test.ts
Kyohei Fukuda 35c100b599 [codex] add circle mark schema (#1547)
* feat(schemas): add circle mark schema

* test(ci): fix playground chrome setup

* test(ci): install puppeteer chrome in shared cache

* test(ci): verify puppeteer chrome install

* test(ci): install pinned puppeteer chrome directly

* test(ci): use system chrome for playground e2e
2026-06-03 17:09:08 +09:00

31 lines
864 B
TypeScript

import { describe, expect, it } from 'vitest';
import { schemaPlugins, schemaTypes } from '../src/schema-plugins.js';
describe('schema plugin discovery', () => {
it('collects exported schema plugins by schema type', () => {
expect(Object.keys(schemaPlugins)).toEqual(
expect.arrayContaining([
'text',
'multiVariableText',
'list',
'image',
'signature',
'table',
'qrcode',
'ean13',
'code128',
'radioGroup',
'checkbox',
'circleMark',
]),
);
});
it('does not leak export container names or aliases into known types', () => {
expect(schemaTypes.has('barcodes')).toBe(false);
expect(schemaTypes.has('builtInPlugins')).toBe(false);
expect(schemaTypes.has('Text')).toBe(false);
expect(schemaTypes.has('text')).toBe(true);
});
});