IFClite TypeScript API
    Preparing search index...

    Interface SyntheticFixtureSpec

    Synthetic fixture support for the test runner.

    The authoring loop's tests need to run against something — but shipping real IFC files in every bundle's tests/models/ is heavy and brittle. Synthetic fixtures fix this by constructing a small in-memory mock bim ctx from a structured spec:

    { schema: 'IFC4', elements: { IfcWall: 12, IfcSlab: 4, }, }

    Test handlers see a ctx.bim whose query.byType(type) returns sequential pseudo-entity-ids matching the declared count. This is deliberately minimalist: enough surface to exercise the call shape of an authored handler, not enough to mimic real IFC semantics. The test runner consumes the result via the loadFixture callback we already plumbed in.

    Spec: docs/architecture/ai-customization/04-ai-authoring.md §7.2.

    interface SyntheticFixtureSpec {
        elements?: Record<string, number>;
        extra?: Record<string, unknown>;
        id: string;
        schema?: string;
    }
    Index
    elements?: Record<string, number>

    Map of IFC type → entity count to fabricate.

    extra?: Record<string, unknown>

    Optional extra properties merged into ctx.bim.

    id: string

    Display id (used to resolve fixture: "<name>" in manifest.tests).

    schema?: string

    Schema version surfaced via ctx.bim.schema.