From 32dc816696115f2ada56b5032636c4b7fd176f42 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 10 Aug 2026 16:32:50 -0700 Subject: [PATCH] test(tooling): trim duplicate coverage (#121736) --- src/scripts/test-projects.test.ts | 36 ------------------- test/scripts/changed-lanes.test.ts | 7 ---- .../report-test-temp-creations.test.ts | 7 ---- 3 files changed, 50 deletions(-) diff --git a/src/scripts/test-projects.test.ts b/src/scripts/test-projects.test.ts index 39501edc6593..e99ad449a428 100644 --- a/src/scripts/test-projects.test.ts +++ b/src/scripts/test-projects.test.ts @@ -518,27 +518,6 @@ describe("test-projects args", () => { ); }); - it("splits an explicit Vitest filesystem module cache root", () => { - const [spec] = applyParallelVitestCachePaths( - [ - { - config: "test/vitest/vitest.gateway.config.ts", - env: {}, - }, - ], - { - cwd: "/repo", - env: { - OPENCLAW_VITEST_FS_MODULE_CACHE_PATH: "/tmp/cache", - }, - }, - ); - - expect(spec?.env.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH).toBe( - "/tmp/cache/0-test-vitest-vitest.gateway.config.ts", - ); - }); - it("routes plugin targets to the plugins config", () => { expect(buildVitestRunPlans(["src/plugins/loader.test.ts"])).toEqual([ { @@ -883,21 +862,6 @@ describe("test-projects args", () => { } }); - it("routes explicit test-support helper files to affected tests", () => { - expect( - findUnmatchedExplicitTestTargets(["src/commands/onboard-non-interactive.test-helpers.ts"]), - ).toEqual([]); - - expect(buildVitestRunPlans(["src/commands/onboard-non-interactive.test-helpers.ts"])).toEqual([ - { - config: "test/vitest/vitest.commands.config.ts", - forwardedArgs: [], - includePatterns: ["src/commands/onboard-non-interactive.gateway.test.ts"], - watchMode: false, - }, - ]); - }); - it("accepts explicit Vitest config targets routed as whole config runs", () => { expect( findUnmatchedExplicitTestTargets(["test/vitest/vitest.contracts-channel-surface.config.ts"]), diff --git a/test/scripts/changed-lanes.test.ts b/test/scripts/changed-lanes.test.ts index 12658af52e25..d572b0e9224e 100644 --- a/test/scripts/changed-lanes.test.ts +++ b/test/scripts/changed-lanes.test.ts @@ -224,13 +224,6 @@ afterEach(() => { }); describe("scripts/changed-lanes", () => { - it("keeps a non-executed changed-gate warning fixture", () => { - // openclaw-temp-dir: allow test fixture for the temp warning report - const warningFixture = 'fs.mkdtemp("openclaw-warning-fixture-", () => {})'; - - expect(warningFixture).toContain("mkdtemp"); - }); - it("detects direct script execution from Windows argv paths", () => { expect( isDirectRunPath( diff --git a/test/scripts/report-test-temp-creations.test.ts b/test/scripts/report-test-temp-creations.test.ts index 247afdba5ada..95371ba107f9 100644 --- a/test/scripts/report-test-temp-creations.test.ts +++ b/test/scripts/report-test-temp-creations.test.ts @@ -32,13 +32,6 @@ function createNestedGitEnv(): NodeJS.ProcessEnv { } describe("report-test-temp-creations", () => { - it("keeps a non-executed warning fixture for changed-gate proof", () => { - // openclaw-temp-dir: allow test fixture for the temp warning report - const warningFixture = 'fs.mkdtempSync("openclaw-warning-fixture-")'; - - expect(warningFixture).toContain("mkdtempSync"); - }); - it("reports added bare temp creation lines using changed-lane test path scope", () => { const bareTempSource = [ "const tempRoot = fs.",