mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(tooling): trim duplicate coverage (#121736)
This commit is contained in:
committed by
GitHub
parent
849f4abcdc
commit
32dc816696
@@ -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"]),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user