Path: blob/main/tests/smoke/render/render-pdf-standard-env.test.ts
12925 views
/*1* render-pdf-standard-env.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5* Tests that QUARTO_PDF_STANDARD environment variable is used as a fallback6* when no pdf-standard is set in the document YAML.7*/89import { docs, outputForInput } from "../../utils.ts";10import { ensureLatexFileRegexMatches } from "../../verify.ts";11import { testRender } from "./render.ts";1213const input = docs("render/pdf-standard-env.qmd");14const output = outputForInput(input, "pdf");1516// Test that QUARTO_PDF_STANDARD env var applies ua-2 even though17// the document has no pdf-standard in its YAML18testRender(input, "pdf", true, [19ensureLatexFileRegexMatches(20output.outputPath,21[/\\DocumentMetadata\{/, /pdfstandard=\{ua-2\}/, /tagging=on/],22[],23input,24),25], {26env: {27QUARTO_PDF_STANDARD: "ua-2",28},29});303132