Skip to content
HomePagesHomePages template kit

DocumentFixture

One document a listing carries, as a fixture states it: a dev media pack asset id plus the prose distilled out of the file.

One document a listing carries, as a fixture states it: a dev media pack asset id plus the prose distilled out of the file. url, filename, content_type and size_bytes are all resolution’s output, read off the pack — a fixture that stated them could contradict the bytes actually served. notes is the one thing the pack cannot supply: nothing reads a fixture PDF, so the distillation a document extractor would have produced has to be authored here, and it is what grounds every text decision on the property.

Import from @homepages/template-kit/fixtures.

export type DocumentFixture = {
id: DocumentAssetId;
notes: string;
};