Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/yaml-intelligence/issue-11967.test.ts
6434 views
1
/*
2
* issue-11967.test.ts
3
*
4
* Copyright (C) 2025 Posit Software, PBC
5
*
6
*/
7
8
import { testQuartoCmd } from "../../test.ts";
9
import { fileLoader } from "../../utils.ts";
10
import { printsMessage } from "../../verify.ts";
11
12
const yamlDocs = fileLoader("yaml");
13
14
const testYamlValidationFails = (file: string) => {
15
testQuartoCmd(
16
"render",
17
[yamlDocs(file, "html").input, "--to", "html", "--quiet"],
18
[printsMessage({level: "ERROR", regex: /\!expr tags are not allowed in Quarto outside of knitr code cells/})],
19
);
20
};
21
22
const files = [
23
"issue-11967.qmd",
24
];
25
26
files.forEach(testYamlValidationFails);
27
28
29