perf(test): route memory package tests through unit-fast · openclaw/openclaw@ee140ae
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import fsSync from "node:fs"; |
2 | 2 | import os from "node:os"; |
3 | 3 | import path from "node:path"; |
4 | | -import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
5 | | - |
6 | | -vi.mock("../../../../src/media/mime.js", () => ({ |
7 | | -detectMime: async (opts: { filePath?: string }) => { |
8 | | -if (opts.filePath?.endsWith(".png")) { |
9 | | -return "image/png"; |
10 | | -} |
11 | | -if (opts.filePath?.endsWith(".wav")) { |
12 | | -return "audio/wav"; |
13 | | -} |
14 | | -return undefined; |
15 | | -}, |
16 | | -})); |
17 | | - |
| 4 | +import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest"; |
18 | 5 | import { |
19 | 6 | buildFileEntry, |
20 | 7 | buildMultimodalChunkForIndexing, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,8 +56,10 @@ export const forcedUnitFastTestFiles = [
|
56 | 56 | "packages/memory-host-sdk/src/host/batch-http.test.ts", |
57 | 57 | "packages/memory-host-sdk/src/host/backend-config.test.ts", |
58 | 58 | "packages/memory-host-sdk/src/host/embeddings-remote-fetch.test.ts", |
| 59 | +"packages/memory-host-sdk/src/host/internal.test.ts", |
59 | 60 | "packages/memory-host-sdk/src/host/post-json.test.ts", |
60 | 61 | "packages/memory-host-sdk/src/host/qmd-process.test.ts", |
| 62 | +"packages/memory-host-sdk/src/host/session-files.test.ts", |
61 | 63 | "src/acp/client.test.ts", |
62 | 64 | "src/acp/control-plane/manager.test.ts", |
63 | 65 | "src/acp/persistent-bindings.test.ts", |
@@ -95,6 +97,7 @@ export const forcedUnitFastTestFiles = [
|
95 | 97 | "src/trajectory/export.test.ts", |
96 | 98 | "src/tts/provider-registry.test.ts", |
97 | 99 | "src/tts/status-config.test.ts", |
| 100 | +"src/terminal/table.test.ts", |
98 | 101 | "src/version.test.ts", |
99 | 102 | ]; |
100 | 103 | const forcedUnitFastTestFileSet = new Set(forcedUnitFastTestFiles); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。