Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: make image route fixtures hardware independent

[._.]/ Adam Eivy0f791e6c1e47
diff --git a/server/routes/imageGen.multipart.test.js b/server/routes/imageGen.multipart.test.js
index 7083d9470c..a2a708a38c 100644
--- a/server/routes/imageGen.multipart.test.js
+++ b/server/routes/imageGen.multipart.test.js
@@ -22,6 +22,31 @@ vi.mock('../lib/fileUtils.js', async () => {
};
});
+// These tests exercise multipart packing and edit-only validation, not host
+// admission. Keep the fixture deterministic across macOS, Linux, and Windows
+// runners by giving the media registry a synthetic capable host.
+vi.mock('../lib/systemCapabilities.js', async () => {
+ const actual = await vi.importActual('../lib/systemCapabilities.js');
+ return {
+ ...actual,
+ captureSystemCapabilities: vi.fn(() => ({
+ version: actual.SYSTEM_CAPABILITIES_VERSION,
+ platform: 'darwin',
+ arch: 'arm64',
+ appleSilicon: true,
+ cpuCount: 8,
+ totalMemoryGb: 128,
+ cuda: {
+ status: 'absent',
+ gpus: [],
+ maxVramGb: null,
+ primaryComputeCap: null,
+ error: null,
+ },
+ })),
+ };
+});
+
vi.mock('../services/imageGen/index.js', async () => {
const actual = await vi.importActual('../services/imageGen/index.js');
return {