
























@@ -211,7 +211,8 @@ describe("docs-link-audit", () => {
211211212212expect(exitCode).toBe(0);
213213expect(invocations).toHaveLength(2);
214-expect(invocations[0]).toMatchObject({
214+const [versionCheck, linkCheck] = invocations;
215+expect(versionCheck).toMatchObject({
215216command: "fnm",
216217args: [
217218"exec",
@@ -222,13 +223,13 @@ describe("docs-link-audit", () => {
222223],
223224options: { stdio: "ignore" },
224225});
225-expect(invocations[1]).toMatchObject({
226+expect(linkCheck).toMatchObject({
226227command: "fnm",
227228args: ["exec", "--using=22", "pnpm", "dlx", "mint", "broken-links", "--check-anchors"],
228229options: { stdio: "inherit" },
229230});
230-expect(invocations[0]?.options.cwd).toBe(anchorDocsDir);
231-expect(invocations[1]?.options.cwd).toBe(anchorDocsDir);
231+expect(versionCheck.options.cwd).toBe(anchorDocsDir);
232+expect(linkCheck.options.cwd).toBe(anchorDocsDir);
232233expect(cleanedDir).toBe(anchorDocsDir);
233234});
234235});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。