test: tighten assertions and harness coverage

This commit is contained in:
Peter Steinberger
2026-05-08 05:27:57 +01:00
parent f62618f805
commit 9ef37d1907
822 changed files with 8918 additions and 6533 deletions

View File

@@ -174,11 +174,14 @@ describe("docs-link-audit", () => {
});
expect(exitCode).toBe(0);
expect(invocation).toBeDefined();
expect(invocation?.command).toBe("pnpm");
expect(invocation?.args).toEqual(["dlx", "mint", "broken-links", "--check-anchors"]);
expect(invocation?.options.stdio).toBe("inherit");
expect(invocation?.options.cwd).toBe(anchorDocsDir);
expect(invocation).toEqual({
command: "pnpm",
args: ["dlx", "mint", "broken-links", "--check-anchors"],
options: expect.objectContaining({
stdio: "inherit",
cwd: anchorDocsDir,
}),
});
expect(cleanedDir).toBe(anchorDocsDir);
});