diff --git a/extensions/bluebubbles/src/attachments.test.ts b/extensions/bluebubbles/src/attachments.test.ts index 3f695861509..503b9641f31 100644 --- a/extensions/bluebubbles/src/attachments.test.ts +++ b/extensions/bluebubbles/src/attachments.test.ts @@ -1,3 +1,4 @@ +import type { PluginRuntime } from "openclaw/plugin-sdk/bluebubbles"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import "./test-mocks.js"; import { diff --git a/extensions/memory-lancedb/test-helpers.ts b/extensions/memory-lancedb/test-helpers.ts index aaf5791bf50..91df15bafb4 100644 --- a/extensions/memory-lancedb/test-helpers.ts +++ b/extensions/memory-lancedb/test-helpers.ts @@ -1,6 +1,6 @@ import fs from "node:fs/promises"; -import os from "node:os"; import path from "node:path"; +import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path"; import { afterEach, beforeEach } from "vitest"; export function installTmpDirHarness(params: { prefix: string }) { @@ -8,7 +8,7 @@ export function installTmpDirHarness(params: { prefix: string }) { let dbPath = ""; beforeEach(async () => { - tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), params.prefix)); + tmpDir = await fs.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), params.prefix)); dbPath = path.join(tmpDir, "lancedb"); });