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.
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/\endpairing, 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 outputSuggested 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.