Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/smoke/search/check-search-index.test.ts
6484 views
1
import { testQuartoCmd } from "../../test.ts";
2
import { fileExists, noErrorsOrWarnings } from "../../verify.ts";
3
4
import { existsSync } from "../../../src/deno_ral/fs.ts";
5
import { join } from "../../../src/deno_ral/path.ts";
6
import { docs } from "../../utils.ts";
7
8
// Test a simple book
9
const input = docs("search/issue-10285");
10
11
testQuartoCmd(
12
"render",
13
[input],
14
[noErrorsOrWarnings],
15
{
16
teardown: async () => {
17
const bookDir = join(input, "_book");
18
if (existsSync(bookDir)) {
19
await Deno.remove(bookDir, { recursive: true });
20
}
21
},
22
},
23
);
24
25