Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/run/command-passthrough.test.ts
12921 views
1
import { assert } from "testing/asserts";
2
import { execProcess } from "../../../src/core/process.ts";
3
import { quartoDevCmd } from "../../utils.ts";
4
import { unitTest } from "../../test.ts";
5
6
const testPassthroughCmd = (name: string, command: string, args: string[]) => {
7
unitTest(name, async () => {
8
const result = await execProcess({
9
cmd: quartoDevCmd(),
10
args: [
11
command,
12
...args,
13
]
14
});
15
assert(result.success);
16
});
17
}
18
19
// Check Pandoc passthrough
20
testPassthroughCmd("passthrough-pandoc", "pandoc", ["--version"]);
21
// Check Typst passthrough
22
testPassthroughCmd("passthrough-typst", "typst", ["--version"]);
23