perf(test): route memory package tests through unit-fast

This commit is contained in:
Peter Steinberger
2026-04-27 16:43:55 +01:00
parent 1cf68b9243
commit ee140ae570
2 changed files with 4 additions and 14 deletions

View File

@@ -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,

View File

@@ -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);