diff --git a/extensions/msteams/src/monitor-handler.file-consent.test.ts b/extensions/msteams/src/monitor-handler.file-consent.test.ts index b7d3b633218..d572378038e 100644 --- a/extensions/msteams/src/monitor-handler.file-consent.test.ts +++ b/extensions/msteams/src/monitor-handler.file-consent.test.ts @@ -1,6 +1,8 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import type { OpenKeyedStoreOptions } from "openclaw/plugin-sdk/plugin-state-runtime"; +import { createPluginStateKeyedStoreForTests } from "openclaw/plugin-sdk/plugin-state-test-runtime"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import type { PluginRuntime } from "../runtime-api.js"; import { runMSTeamsFileConsentInvokeHandler } from "./file-consent-invoke.js"; @@ -45,6 +47,8 @@ function createRuntimeStub(stateDir?: string): PluginRuntime { }, }, state: { + openKeyedStore: (options: OpenKeyedStoreOptions) => + createPluginStateKeyedStoreForTests("msteams", options), resolveStateDir: (env?: NodeJS.ProcessEnv) => { const override = env?.OPENCLAW_STATE_DIR?.trim(); if (override) {