Skip to content

latex and typst output have no structural tests #416

Closed

Description

@dubadub

The LaTeX and Typst output formats have no tests that pin their structure. The five existing CLI tests assert only that the paper-size and margin substrings appear.

A regression that broke \begin/\end pairing, emitted malformed preamble, or mangled ingredient markup would pass the suite, because nothing inspects the document body.

For comparison, the other formats are better served:

  • -f jsonld — tests/schema_output_test.rs, 18 tests parsing the JSON and asserting fields
  • -f human, -f md, -f json, -f yaml — insta snapshots pinning exact output

Suggested direction

One golden-output test per format, snapshotting a representative recipe that exercises ingredients, cookware, timers, sections and metadata. That is enough to catch structural breakage without pinning every formatting detail.

Noticed while extracting the formatters into a library crate, where these two are reachable directly by consumers with no CLI in the loop.

Activity

  1. added
    help wanted
    on Aug 13, 2026
  2. added a commit that references this issue on Aug 31, 2026
    61bd8ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions