chore(deadcode): move plugin test mocks out of prod paths · openclaw/openclaw@5c8fa5d
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -133,8 +133,6 @@ const config = {
|
133 | 133 | "src/shared/text/assistant-visible-text.ts", |
134 | 134 | bundledPluginFile("telegram", "src/bot/reply-threading.ts"), |
135 | 135 | bundledPluginFile("telegram", "src/draft-chunking.ts"), |
136 | | -bundledPluginFile("msteams", "src/conversation-store-memory.ts"), |
137 | | -bundledPluginFile("msteams", "src/polls-store-memory.ts"), |
138 | 136 | bundledPluginFile("voice-call", "src/providers/index.ts"), |
139 | 137 | ], |
140 | 138 | ignore: ["packages/*/dist/**"], |
|
File renamed without changes.
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ import {
|
17 | 17 | setMemorySearchImpl, |
18 | 18 | setMemoryWorkspaceDir, |
19 | 19 | type MemoryReadParams, |
20 | | -} from "./memory-tool-manager-mock.js"; |
| 20 | +} from "./memory-tool-manager.test-mocks.js"; |
21 | 21 | import { testing as shortTermPromotionTesting } from "./short-term-promotion.js"; |
22 | 22 | import { createMemoryCoreTestHarness } from "./test-helpers.js"; |
23 | 23 | import { testing as memoryToolsTesting } from "./tools.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import {
|
6 | 6 | resetMemoryToolMockState, |
7 | 7 | setMemoryBackend, |
8 | 8 | setMemorySearchImpl, |
9 | | -} from "./memory-tool-manager-mock.js"; |
| 9 | +} from "./memory-tool-manager.test-mocks.js"; |
10 | 10 | import { createMemorySearchTool } from "./tools.js"; |
11 | 11 | |
12 | 12 | type RecordShortTermRecallsFn = (params: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ import {
|
11 | 11 | setMemoryCustomStatus, |
12 | 12 | setMemorySearchImpl, |
13 | 13 | setMemorySearchManagerImpl, |
14 | | -} from "./memory-tool-manager-mock.js"; |
| 14 | +} from "./memory-tool-manager.test-mocks.js"; |
15 | 15 | import { createMemorySearchTool, testing as memoryToolsTesting } from "./tools.js"; |
16 | 16 | import { MemoryGetSchema, MemorySearchSchema } from "./tools.shared.js"; |
17 | 17 | import { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Zalouser tests cover monitor.account scope plugin behavior. |
2 | 2 | import { describe, expect, it, vi } from "vitest"; |
3 | 3 | import type { OpenClawConfig, PluginRuntime } from "../runtime-api.js"; |
4 | | -import "./monitor.send-mocks.js"; |
| 4 | +import "./monitor.send.test-mocks.js"; |
5 | 5 | import { testing } from "./monitor.js"; |
6 | 6 | import "./zalo-js.test-mocks.js"; |
7 | | -import { sendMessageZalouserMock } from "./monitor.send-mocks.js"; |
| 7 | +import { sendMessageZalouserMock } from "./monitor.send.test-mocks.js"; |
8 | 8 | import { setZalouserRuntime } from "./runtime.js"; |
9 | 9 | import { createZalouserRuntimeEnv } from "./test-helpers.js"; |
10 | 10 | import type { ResolvedZalouserAccount, ZaloInboundMessage } from "./types.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@
|
2 | 2 | import { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-outbound"; |
3 | 3 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
4 | 4 | import type { OpenClawConfig, PluginRuntime } from "../runtime-api.js"; |
5 | | -import "./monitor.send-mocks.js"; |
| 5 | +import "./monitor.send.test-mocks.js"; |
6 | 6 | import "./zalo-js.test-mocks.js"; |
7 | 7 | import { resolveZalouserAccountSync } from "./accounts.js"; |
8 | 8 | import { testing, monitorZalouserProvider } from "./monitor.js"; |
@@ -11,7 +11,7 @@ import {
|
11 | 11 | sendMessageZalouserMock, |
12 | 12 | sendSeenZalouserMock, |
13 | 13 | sendTypingZalouserMock, |
14 | | -} from "./monitor.send-mocks.js"; |
| 14 | +} from "./monitor.send.test-mocks.js"; |
15 | 15 | import { setZalouserRuntime } from "./runtime.js"; |
16 | 16 | import { createZalouserRuntimeEnv } from "./test-helpers.js"; |
17 | 17 | import type { ResolvedZalouserAccount, ZaloInboundMessage } from "./types.js"; |
|
File renamed without changes.
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,6 @@ export const KNIP_OPTIONAL_UNUSED_FILE_ALLOWLIST = [
|
17 | 17 | "extensions/diffs/src/viewer-client.ts", |
18 | 18 | "extensions/diffs/src/viewer-payload.ts", |
19 | 19 | "extensions/matrix/src/plugin-entry.runtime.js", |
20 | | -"extensions/memory-core/src/memory-tool-manager-mock.ts", |
21 | 20 | "ui/src/ui/browser-redact.ts", |
22 | 21 | "src/agents/subagent-registry.runtime.ts", |
23 | 22 | "src/auto-reply/reply/get-reply.test-loader.ts", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。