test: route extension tests through sdk subpaths

This commit is contained in:
Peter Steinberger
2026-04-27 21:58:08 +01:00
parent 662de55e07
commit 74e62c32c3
98 changed files with 202 additions and 213 deletions

View File

@@ -10,7 +10,7 @@ const mocks = vi.hoisted(() => ({
resolveMemoryWikiConfig: vi.fn(),
}));
vi.mock("../../src/config/config.js", () => ({
vi.mock("openclaw/plugin-sdk/config-runtime", () => ({
getRuntimeConfig: mocks.loadConfig,
loadConfig: mocks.loadConfig,
}));

View File

@@ -1,16 +1,16 @@
import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";
import type { MemoryPluginPublicArtifact } from "openclaw/plugin-sdk/memory-host-core";
import {
clearMemoryPluginState,
type MemoryPluginPublicArtifact,
registerMemoryCapability,
} from "openclaw/plugin-sdk/memory-host-core";
import {
appendMemoryHostEvent,
resolveMemoryHostEventLogPath,
} from "openclaw/plugin-sdk/memory-host-events";
import { afterAll, afterEach, beforeAll, describe, expect, it } from "vitest";
import {
clearMemoryPluginState,
registerMemoryCapability,
} from "../../../src/plugins/memory-state.js";
import type { OpenClawConfig } from "../api.js";
import { syncMemoryWikiBridgeSources } from "./bridge.js";
import { createMemoryWikiTestHarness } from "./test-helpers.js";

View File

@@ -1,7 +1,7 @@
import fs from "node:fs";
import AjvPkg from "ajv";
import type { JsonSchemaObject } from "openclaw/plugin-sdk/config-schema";
import { describe, expect, it } from "vitest";
import type { JsonSchemaObject } from "../../../src/shared/json-schema.types.js";
import {
DEFAULT_WIKI_RENDER_MODE,
DEFAULT_WIKI_SEARCH_BACKEND,