Path: blob/main/tests/smoke/render/render-commonmark.test.ts
12921 views
/*1* render.jupyter.test.ts2*3* Copyright (C) 2020-2022 Posit Software, PBC4*5*/6import { join } from "../../../src/deno_ral/path.ts";7import { docs, outputForInput } from "../../utils.ts";8import { ensureFileRegexMatches } from "../../verify.ts";9import { testRender } from "./render.ts";1011const tests = [12{ file: "commonmark-plain.qmd" },13{ file: "commonmark-r.qmd" },14{ file: "commonmark-python.qmd"},15{ file: "commonmark-julia.qmd" },16{ file: "commonmark-julianative.qmd" },17];18tests.forEach((test) => {19const input = docs(join("markdown", test.file));20const output = outputForInput(input, "commonmark");21testRender(22input,23"commonmark",24true,25[ensureFileRegexMatches(output.outputPath, [26/^# test$/gm,27])],28);29});303132