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.
Signature
Section titled “Signature”function parseFixtureModule(raw: unknown): ResolvedFixtureModuleParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
raw |
unknown |
required |
Returns
Section titled “Returns”ResolvedFixtureModule
Constraints
Section titled “Constraints”- If
rawis not adefineFixturesmodule, or is branded but malformed.