Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/yaml/config-yaml-validation.test.ts
6450 views
1
/*
2
* config-yaml-validation.test.ts
3
*
4
* Copyright (C) 2024 Posit Software, PBC
5
*
6
*/
7
8
import { testQuartoCmd } from "../../test.ts";
9
import { docs } from "../../utils.ts";
10
import { printsMessage } from "../../verify.ts";
11
12
const input = docs("yaml/bad-config-yaml/subfolder/bad-config-yaml.qmd");
13
14
testQuartoCmd(
15
"render",
16
[input],
17
[printsMessage({level: "ERROR", regex: /bad-config-yaml[\/\\]+_quarto[.]yml validation failed/})]
18
);
19
20