Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/engine/invalid-engine-in-project.test.ts
12921 views
1
import { assertRejects } from "testing/asserts";
2
import { quarto } from "../../../src/quarto.ts";
3
import { test } from "../../test.ts";
4
5
test(
6
{
7
name: "invalid engines option errors",
8
execute: async () => {
9
assertRejects(
10
async () => {await quarto(["render", "docs/engine/invalid-project/notebook.qmd"])},
11
Error,
12
"'invalid-engine' was specified in the list of engines in the project settings but it is not a valid engine",
13
)
14
},
15
type: "smoke",
16
context: {},
17
verify: [],
18
}
19
)
20