mirror of
https://github.com/pdfme/pdfme.git
synced 2026-06-15 17:59:09 -04:00
* 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
31 lines
864 B
TypeScript
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);
|
|
});
|
|
});
|