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,