test(extensions): fix shared test helper contracts

This commit is contained in:
Peter Steinberger
2026-04-20 21:55:46 +01:00
parent 3a7a1f156d
commit 22f2de0c4f
2 changed files with 3 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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");
});