mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:20:43 +00:00
test: route extension tests through sdk subpaths
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user