Skip to content
HomePagesHomePages template kit

buildInvariantFixtures

The render-invariant fixture corpus for a section: `buildFixtureSet`'s output plus one additional synthesized fixture per declared slot that is not already empty/absent in `base` — each with that one slot set to its empty/absent value, proving the section renders defect-free when the slot is unfilled.

The render-invariant fixture corpus for a section: buildFixtureSet’s output plus one additional synthesized fixture per declared slot that is not already empty/absent in base — each with that one slot set to its empty/absent value, proving the section renders defect-free when the slot is unfilled. Every slot qualifies, whatever it declares. A slot base already leaves empty gets no synthesized fixture (it would be a duplicate of base itself), so the corpus size is bounded by, not equal to, the slot count. Used only for invariant checking, never for the smaller committed snapshot corpus.

Import from @homepages/template-kit.

function buildInvariantFixtures(input: { schema: SchemaForBuild & SchemaForSynth; module: ResolvedFixtureModule; selfAnchor?: string; }): ResolvedFixture[]
Name Type Required Description
input `{
schema: SchemaForBuild & SchemaForSynth;
module: ResolvedFixtureModule;
selfAnchor?: string;
}` required

ResolvedFixture[]