diff --git a/tests/boundary/filesystem/documentationFacts.test.ts b/tests/boundary/filesystem/documentationFacts.test.ts index 2e910443c4..46bb562a3c 100644 --- a/tests/boundary/filesystem/documentationFacts.test.ts +++ b/tests/boundary/filesystem/documentationFacts.test.ts @@ -1,8 +1,8 @@ -import { mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { mkdir, readFile, writeFile } from "node:fs/promises"; import { dirname, join, matchesGlob } from "node:path"; import { fileURLToPath } from "node:url"; -import { afterEach, describe, expect, it } from "vitest"; +import { describe, expect, it } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; @@ -14,20 +14,10 @@ import { } from "../../../scripts/lib/docs-facts.mjs"; const root = fileURLToPath(new URL("../../..", import.meta.url)); -const temporaryRoots: string[] = []; - -afterEach(async () => { - await Promise.all( - temporaryRoots - .splice(0) - .map((path) => rm(path, { recursive: true, force: true })), - ); -}); describe("literal tool counts", () => { it("refuses catalog-size restatements in living prose only", async () => { const directory = await createTestTempDirectory("rea-tool-count-facts-"); - temporaryRoots.push(directory); const write = async (path: string, content: string) => { await mkdir(dirname(join(directory, path)), { recursive: true }); await writeFile(join(directory, path), content); @@ -88,7 +78,6 @@ describe("literal tool counts", () => { describe("translated README facts", () => { it("keeps translated readmes linked to canonical setup and tool details", async () => { const directory = await createTestTempDirectory("rea-readme-facts-"); - temporaryRoots.push(directory); const translatedPath = join(directory, "docs/readme/README_zh.md"); const links = [ "[Agents](docs/getting-started/installation.md#supported-agents)", diff --git a/tests/boundary/filesystem/productCatalog.test.ts b/tests/boundary/filesystem/productCatalog.test.ts index 4244b50c05..ab81fb8e9d 100644 --- a/tests/boundary/filesystem/productCatalog.test.ts +++ b/tests/boundary/filesystem/productCatalog.test.ts @@ -1,8 +1,8 @@ -import { mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { mkdir, readFile, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { fileURLToPath } from "node:url"; -import { afterEach, describe, expect, it } from "vitest"; +import { describe, expect, it } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; @@ -41,15 +41,6 @@ import { } from "../../../scripts/lib/product-catalog.mjs"; const root = fileURLToPath(new URL("../../..", import.meta.url)); -const temporaryRoots: string[] = []; - -afterEach(async () => { - await Promise.all( - temporaryRoots - .splice(0) - .map((path) => rm(path, { recursive: true, force: true })), - ); -}); describe("canonical product catalog", () => { it("admits every documented browser scenario through the named contract", async () => { @@ -209,7 +200,6 @@ describe("canonical product catalog drift", () => { it("fails check mode without rewriting a stale generated artifact", async () => { const directory = await createTestTempDirectory("rea-generated-check-"); - temporaryRoots.push(directory); const path = join(directory, "catalog.json"); await writeFile(path, "stale\n", "utf8"); await expect( @@ -234,7 +224,6 @@ describe("canonical product catalog drift", () => { it("accepts and preserves native generated-file line endings", async () => { const directory = await createTestTempDirectory("rea-generated-eol-"); - temporaryRoots.push(directory); const path = join(directory, "catalog.json"); await writeFile(path, "current\r\n", "utf8"); await expect(