Skip to content
HomePagesHomePages template kit

parseFixtureModule

Parses a `fixtures.ts` module's default export.

Parses a fixtures.ts module’s default export. The module must be the branded output of defineFixtures; an unbranded object is rejected by name rather than coerced, because there is no other fixture shape to fall back to.

Import from @homepages/template-kit.

function parseFixtureModule(raw: unknown): ResolvedFixtureModule
Name Type Required Description
raw unknown required

ResolvedFixtureModule

  • If raw is not a defineFixtures module, or is branded but malformed.