Files
paseo/packages/website/src/schedule-docs.test.ts
T
paseo-bot[bot] 0eee4fd9b0 docs(schedules): explain archive-on-finish behavior (#7426)
The schedule and worktree guides omitted the existing retention control and its default. Document the app setting and clarify that CLI and MCP tools do not expose it.

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-10-19 23:56:49 +02:00

17 lines
580 B
TypeScript

import { readFile } from "node:fs/promises";
import path from "node:path";
import { expect, it } from "vitest";
const docsRoot = path.resolve(import.meta.dirname, "../../../public-docs");
it.each(["schedules.md", "schedules-cli.md", "mcp.md", "worktrees.md"])(
"%s makes schedule run retention discoverable",
async (file) => {
const markdown = await readFile(path.join(docsRoot, file), "utf8");
expect(markdown).toContain("Archive on finish");
if (file !== "schedules.md") {
expect(markdown).toContain("/docs/schedules#keep-run-workspaces");
}
},
);