/** * Test fixture loader for the GitLab CI lexicon. */ import { readFileSync } from "fs"; import { join } from "path"; /** * Load the minimal CI schema fixture for offline testing. */ export function loadSchemaFixture(): Buffer { const fixturePath = join(import.meta.dirname, "ci-schema-fixture.json"); return Buffer.from(readFileSync(fixturePath)); } /** * Load the schema fixture as a Map compatible with generatePipeline. */ export function loadSchemaFixtureMap(): Map { const schemas = new Map(); schemas.set("GitLab::CI::Pipeline", loadSchemaFixture()); return schemas; }