Skip to content

Commit 7d06bfd

Browse files
cdervclaude
andcommitted
Fix missing _site cleanup in extension and issue-10828 prepost test teardowns
Both tests render website projects but only cleaned up their specific side-effect files, leaving _site/ directories behind after each run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 88abe51 commit 7d06bfd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/smoke/project/project-prepost.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ testQuartoCmd(
7575
const path = join(docs("project/prepost/extension"), "i-was-created.txt");
7676
verifyPath(path);
7777
safeRemoveIfExists(path);
78+
const siteDir = join(docs("project/prepost/extension"), "_site");
79+
if (existsSync(siteDir)) {
80+
await Deno.remove(siteDir, { recursive: true });
81+
}
7882
}
7983
});
8084

@@ -94,6 +98,10 @@ testQuartoCmd(
9498
safeRemoveIfExists(inputPath);
9599
verifyPath(outputPath);
96100
safeRemoveIfExists(outputPath);
101+
const siteDir = join(docs("project/prepost/issue-10828"), "_site");
102+
if (existsSync(siteDir)) {
103+
await Deno.remove(siteDir, { recursive: true });
104+
}
97105
}
98106
}
99107
)

0 commit comments

Comments
 (0)