mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
perf(test): route memory package tests through unit-fast
This commit is contained in:
@@ -1,20 +1,7 @@
|
||||
import fsSync from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
vi.mock("../../../../src/media/mime.js", () => ({
|
||||
detectMime: async (opts: { filePath?: string }) => {
|
||||
if (opts.filePath?.endsWith(".png")) {
|
||||
return "image/png";
|
||||
}
|
||||
if (opts.filePath?.endsWith(".wav")) {
|
||||
return "audio/wav";
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
}));
|
||||
|
||||
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||
import {
|
||||
buildFileEntry,
|
||||
buildMultimodalChunkForIndexing,
|
||||
|
||||
@@ -56,8 +56,10 @@ export const forcedUnitFastTestFiles = [
|
||||
"packages/memory-host-sdk/src/host/batch-http.test.ts",
|
||||
"packages/memory-host-sdk/src/host/backend-config.test.ts",
|
||||
"packages/memory-host-sdk/src/host/embeddings-remote-fetch.test.ts",
|
||||
"packages/memory-host-sdk/src/host/internal.test.ts",
|
||||
"packages/memory-host-sdk/src/host/post-json.test.ts",
|
||||
"packages/memory-host-sdk/src/host/qmd-process.test.ts",
|
||||
"packages/memory-host-sdk/src/host/session-files.test.ts",
|
||||
"src/acp/client.test.ts",
|
||||
"src/acp/control-plane/manager.test.ts",
|
||||
"src/acp/persistent-bindings.test.ts",
|
||||
@@ -95,6 +97,7 @@ export const forcedUnitFastTestFiles = [
|
||||
"src/trajectory/export.test.ts",
|
||||
"src/tts/provider-registry.test.ts",
|
||||
"src/tts/status-config.test.ts",
|
||||
"src/terminal/table.test.ts",
|
||||
"src/version.test.ts",
|
||||
];
|
||||
const forcedUnitFastTestFileSet = new Set(forcedUnitFastTestFiles);
|
||||
|
||||
Reference in New Issue
Block a user