From 710c63edadb6aca4de2db821dfb45f6b223622c0 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 3 Apr 2026 21:37:15 +0900 Subject: [PATCH] test(extensions): use direct runtime capture helpers --- extensions/memory-core/src/cli.test.ts | 4 ++-- extensions/openshell/src/openshell-core.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/memory-core/src/cli.test.ts b/extensions/memory-core/src/cli.test.ts index 43ef1ac958a..81db30f1c22 100644 --- a/extensions/memory-core/src/cli.test.ts +++ b/extensions/memory-core/src/cli.test.ts @@ -2,13 +2,13 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import { Command } from "commander"; +import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { firstWrittenJsonArg, spyRuntimeErrors, spyRuntimeJson, spyRuntimeLogs, -} from "openclaw/plugin-sdk/testing"; -import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; +} from "../../../src/cli/test-runtime-capture.js"; const getMemorySearchManager = vi.hoisted(() => vi.fn()); const loadConfig = vi.hoisted(() => vi.fn(() => ({}))); diff --git a/extensions/openshell/src/openshell-core.test.ts b/extensions/openshell/src/openshell-core.test.ts index aa7a63bc1b9..fc219faa782 100644 --- a/extensions/openshell/src/openshell-core.test.ts +++ b/extensions/openshell/src/openshell-core.test.ts @@ -2,8 +2,8 @@ import fsSync from "node:fs"; import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -import { createSandboxTestContext } from "openclaw/plugin-sdk/testing"; import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; +import { createSandboxTestContext } from "../../../src/agents/sandbox/test-fixtures.js"; import type { OpenShellSandboxBackend } from "./backend.js"; import { buildExecRemoteCommand,