Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/check/check.test.ts
12925 views
1
/*
2
* check.test.ts
3
*
4
* Copyright (C) 2020-2025 Posit Software, PBC
5
*
6
*/
7
8
import { existsSync } from "../../../src/deno_ral/fs.ts";
9
import { ExecuteOutput, testQuartoCmd } from "../../test.ts";
10
11
(() => {
12
const output = "docs/check.json";
13
testQuartoCmd(
14
"check",
15
["--output", output],
16
[
17
{
18
name: "check-json",
19
verify: async (_outputs: ExecuteOutput[]) => {
20
const txt = Deno.readTextFileSync(output);
21
const json = JSON.parse(txt);
22
}
23
}
24
],
25
{
26
teardown: async () => {
27
if (existsSync(output)) {
28
Deno.removeSync(output);
29
}
30
}
31
},
32
);
33
})();
34
35